开发者

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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜