Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要知道是否有办法(工具)来获取在“flashvar”标签中使用的 flash 对象(swf)变量。
您可以使用以下方式访问变量:
loaderInfo.parameters
http://circlecube.com/2009/12/flashvars-and-as3/
使用 flex 进入 mx:application :
Application.application.parameters.myName
否则:
FlexGlobals.topLevelApplication.parameters[myName];
使用来自显示对象的 Flash 应用程序:
LoaderInfo(this.root.loaderInfo).parameters;