tags:

views:

10

answers:

1

How can I get querystring values from a bowser sting into my flash movie

For example the link is www.blah.com/index.html?name=John

The html page loads a flash movie, and I would like the flash movie to be able to access the variable name=John

Is this possible?

Thanks

A: 

Assuming ActionScript 3.

Checkout: http://blog.circlecube.com/2008/01/tutorial/get-current-url-to-flash-swf-using-an-external-interface-call/

Pretty much it seems to be: ExternalInterface.call(“window.location.href.toString”);

Then I guess you can get what you need by finding from the string.

Or you can use FlashVars and pass what you need to: blogs.adobe.com/pdehaan/2006/07/using_flashvars_with_actionscr.html

In the embed tag it's: FlashVars="one=1&two=2" and param:

Billy