Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
damian@gcoders.com - 28 Sep 2007 11:30 GMT
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
nothingsoriginalontheinternet@gmail.com - 29 Sep 2007 23:33 GMT
>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
[quoted text clipped - 8 lines]
> does anyone have an example/ pointer in the right direction?
> much appreciated

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.