从一个SWF传递变量,以在AS3另一个SWF [英] to pass variable from one swf to another swf in as3

查看:160
本文介绍了从一个SWF传递变量,以在AS3另一个SWF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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");

这篇关于从一个SWF传递变量,以在AS3另一个SWF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆