howto get a flash object (swf) variables
I need to know i开发者_如何转开发f there's a way (a tool) to get a flash object (swf) variables which are used in "flashvar" tag.
You access the variables using:
loaderInfo.parameters
http://circlecube.com/2009/12/flashvars-and-as3/
With flex into the mx:application :
Application.application.parameters.myName
Otherwise:
FlexGlobals.topLevelApplication.parameters[myName];
With flash application from a displayed object:
LoaderInfo(this.root.loaderInfo).parameters;
精彩评论