473,320 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Retrieving a value from an embedded SWF file from ASP .net

I'm developing a quiz, and making some fancy controls, sliders and the
like in Flash. I now want to be able to get the value of the slider
control from my ASP . NET page. All I can find on the web are exmaples
of how to use an ASP .net page as the service, but i need it the other
way around, i.e. when the slider moves in my Flash file, I want the
asp .net page to be notified so i can store the value as a local
variable, for scoring..

i thought i posted this message but couldnt see it so apologies if
this ges asked twice.
does anyone have an example/ pointer in the right direction?
much appreciated

Sep 28 '07 #1
1 1381
>From ActionScript, you can do something that works like AJAX.

Do whatever you need to do in your Flash's ActionScript to fill in
this sample or otherwise modify it to get your data across (maybe in a
button's on click handler):
//ActionScript
objLV = new LoadVars();
objLV.sliderVal = 50; // eh?
objLV.send("myUpdSrvce.aspx", "", "post");

And we'll create a web service of sorts with myUpdSrvce.aspx for
simplicity. Here the page's Load event handler:
'VB
Sub Page_Load(s As Sender, e As EventArgs) _
Handles Me.Load
Dim sliderVal As String
sliderVal = Form("sliderVal")

'Do stuff!
End Sub

I do something like that with Actionscript/PHP, should work this way
too although I haven't tried it.

-Mike Placentra II

On Sep 28, 6:30 am, dam...@gcoders.com wrote:
I'm developing a quiz, and making some fancy controls, sliders and the
like in Flash. I now want to be able to get the value of the slider
control from my ASP . NET page. All I can find on the web are exmaples
of how to use an ASP .net page as the service, but i need it the other
way around, i.e. when the slider moves in my Flash file, I want the
asp .net page to be notified so i can store the value as a local
variable, for scoring..

i thought i posted this message but couldnt see it so apologies if
this ges asked twice.
does anyone have an example/ pointer in the right direction?
much appreciated
Sep 29 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: BlackHawke | last post by:
Hello! In our game package (www.andromedaonline.net) we are having problems with sounds. We have placed them in a jar file, and are trying to access them from there. The jar file has a...
1
by: Chris Shipley | last post by:
I am trying to present a list of links on a page (Form) where each link opens a different picture gallery. I have the Form page which contains the links, a Gallery page, and several include files....
7
by: Robert W. | last post by:
I think I'm going insane, but thought I'd check with you all first before I get myself commited! Here's a method I've built to retrieve an image: public static Image GetImage(string...
1
by: Captain Dondo | last post by:
I am not really experienced in Javascript so bear with me.... I am working with an embedded platform; no mouse, no keyboard. Just up, down, left, right keys and +/- keys for...
1
by: mehdi_mousavi | last post by:
Hi folks, Consider a string that's defined under VS2005 resource editor as myField with the value of myValue. To access the value, I could easily use the Properties.Resources class, for example:...
5
by: Sanjay Pais | last post by:
I have a table with over 1.3 million rows. I am retrieving only 20 at a time using the with - over clauses In query analyser, the data is retrieved in under a second. When retrieving using the...
0
bmallett
by: bmallett | last post by:
First off, i would like to thank everyone for any and all help with this. That being said, I am having a problem retrieving/posting my dynamic form data. I have a form that has multiple options...
0
by: velmani | last post by:
hi , i have problem with Retrieving image from DB i have a table with image datatype i store a file by using code as follows -------------------------------------------------- string strType; ...
0
by: Phijo | last post by:
Hello, I'm a Java developer but brand new to ASP (i have done some of the tutorials) so I have some ASP programming background however I cannot find the cause or the fix to this problem. I am...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.