Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Retrieving a value from an embedded SWF file from ASP .net

Reply
Thread Tools

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

 
 
damian@gcoders.com
Guest
Posts: n/a
 
      09-28-2007
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

 
Reply With Quote
 
 
 
 
nothingsoriginalontheinternet@gmail.com
Guest
Posts: n/a
 
      09-29-2007
>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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem to call an mp3 file from a swf file Steph HTML 12 01-20-2008 02:01 AM
Converting HTML file to a SWF file. UJ ASP .Net 0 07-27-2005 06:43 PM
IF flash installed THEN file.swf ELSE file.jpg diablo HTML 20 06-25-2005 01:31 AM
Preview a .html file and a .swf file UJ ASP .Net 1 06-13-2005 01:40 PM
How to display images embedded in e-mail as embedded, not attachments Jim Firefox 4 12-11-2004 05:36 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57