PDA

View Full Version : Read php parameters



danny0085
February 11th, 2009, 07:42 PM
I have a swf movie embedded in a php file, so when I load the page. I do it in this way

localhost/readURL.php?lang=en

Is there a way to read the value of lang in the swf movie ??. Because I need to call it with diferents languages (en,es,fr,de) and I need to change the language of the swf movie, without loading another swf movie

Thanks for your help

Quirky Quantum
February 11th, 2009, 09:58 PM
Hmm, I can think of one way off the top of my head but it isn't very pretty
so correct me if there is a better way.
In the php page, make it create a cookie or session with the language data in it.
Then in the swf, make it load a php page and have that page load the cookie or session
and return it to the swf.

creatify
February 11th, 2009, 10:52 PM
Look into FlashVars - google "flash AS3 FlashVars" or see this example (the AS3 version of course) (http://blog.six4rty.ch/tutorials/flash-flashvars-in-as3/)