Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / April 2008



Tip: Looking for answers? Try searching our database.

Get values from URL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ayush.Jain - 03 Apr 2008 07:03 GMT
Hi,

I am trying to develop a flash map where i need to show a value from the
current url into the text field in flash. The problem is I need only some
values from the url to be displayed in different text boxes.

Say the url is
http://ayushjain.in/staticDefault.aspx?northamerica=168&southamerica=1&europe=10
&africa=0

I want to display the value of "northamerica", "eurpoe" & "africa" in the text
boxes.

This should be done as soon as the swf loads in the html page.

Looking forward for help.

Thanks,
Ayush
Raymond Basque - 03 Apr 2008 13:43 GMT
Assuming AS3, I can think of two ways:

1. Use the ExternalInterface class to retrieve that information from the
html document. Will require writing some javascript. See the example in
Flash help.

2. Append the query string to the flash url in the object/embed tag(s) -- or
use the FlashVars parameter, and then retrieve the values using
LoaderInfo.parameters (see Help). You can do this on the client side using
javascript -- or since your document is .aspx, on the server side when you
build the page/response.
 
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



©2009 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.