PDA

View Full Version : Loading HTTP attributes in flash?



zoransoko
May 16th, 2008, 01:47 PM
Hallo Everybody!

I have 2 questions about HTTP attributes.

1.
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?

2.
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.swfwhen I embed the flash?


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

dail
May 17th, 2008, 06:48 PM
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.

zoransoko
May 18th, 2008, 05:56 PM
Thanks Dail,

I will do something like that.