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.