从一个SWF传递变量,以在AS3另一个SWF变量、SWF

2023-09-08 15:31:19 作者:愿时光盗不走你

我在AS3主SWF和我加载在AS3另一个SWF在里面。现在,我想主SWF传递变量来加载的SWF。这是不是发生了什么?请。帮助!

I have a main swf in as3 and I load another swf in as3 in it. Now I want the main swf to pass variable to loaded swf. Which is not happening ? pls. help!

问候, 萨加尔

推荐答案

这可以通过

将参数传递给加载的SWF应用程序

通过更改负载参数,并使用 application.loaderInfo 来获得变量。

by changing the load parameters and using application.loaderInfo to get the variable.

loader.load("SWFLoaderApp.swf?test=hi");
 
精彩推荐
图片推荐