Bahaïka
Bahaïka

Reputation: 725

Passing variables from HTML to ActionScript

I'm trying to send variables from my WebPage to a Flash object. But it doesn't work.

Here is the way I call the animation inside the webpage :

<object type="application/x-shockwave-flash" data="/flash/Reintegrate.swf" width="1150" height="800" value="idu=Salut"></object>

Here is my code in AS3, LblTst shows nothing :

var userid:String = loaderInfo.parameters.idu;
LblTst.text = userid;

Any idea ?

Upvotes: 0

Views: 98

Answers (1)

mgraph
mgraph

Reputation: 15338

add this between the <object> tag :

...><param name="flashvars" value="idu=Salut"/></object>

Upvotes: 1

Related Questions