PDA

View Full Version : Passing Parameters into Flash movie



Louis777
July 7th, 2007, 07:42 PM
Hello, I need help passing a parameter into a flash movie. I am using Flash CS3 and AS3.

For example:

<PARAM NAME=movie VALUE="myflash.swf?para1=hello">

How can I retrieve this from within my flash movie?

Thanks,

Louis

Louis777
July 7th, 2007, 11:24 PM
I got the answer!! :ne: I'm posting it here just in case someone else is looking for it:

when you embed your fash movie in HTML do something like this:


<param name="movie" value="myFlash.swf" />
<param name="FlashVars" value="para1=hello" />
within flash you can retrieve the para1 parameter by doing this:


my_txt.text = _level0.para1;
Thats it.

Louis