;

PDA

Click to See Complete Forum and Search --> : v7-AS3 [RESOLVED] Parameter passing to swf


imdumb
03-26-2009, 08:24 AM
In the Export Setting KM allows you to pass variables to swf using flash vars.
I entered a simple variable. sid=1;
I added scriptcode to test variable.

txt1.text="sid:"+sid

nothing shows in the txt1 box.

not sure how the parameters function works?

Can someone elaborate.........

w.brants
03-26-2009, 08:58 AM
Accessing parameters works different when using AS3.

txt1.text = "sid:" + loaderInfo.parameters.sid;

imdumb
03-26-2009, 09:02 AM
did not have the loaderInfo property.....
thank you for the response....