Loading HTTP attributes in flash?

Hallo Everybody!

I have 2 questions about HTTP attributes.

If I have this URL:

http://sitename/mainmovie.swf?file=dir/movie.swf&adv=adv/advmovie.swf

…how can I load the values for ‘file’ and ‘adv’ into my flash movie using Action script 3.0?

This is the URL without embedding the flash in HTML. Will it work the same with this URL:

http://sitename/mypage.php?file=dir/movie.swf&adv=adv/advmovie.swf

when I embed the flash?

Thanks a lot in advance.I will appreciate any help.

Hey,

You need to use javascript to access the browser URL, and then parse that result, grabbing your vars.
http://www.flexer.info/2007/11/28/access-the-query-string-variables-from-flex-application/
has some examples of it.

Thanks Dail,

I will do something like that.