to pass variable from one swf to another swf in as3

ε祈祈猫儿з 提交于 2020-01-06 19:49:25

问题


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!

Regards, Sagar


回答1:


This can be done by

Passing parameters to a loaded SWF application

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

loader.load("SWFLoaderApp.swf?test=hi");



回答2:


Take a look at the LocalConnection class. :-)

-EDIT-

Apologies. I misread your question. I didn't read that the first swf would load in the second swf.



来源:https://stackoverflow.com/questions/3132133/to-pass-variable-from-one-swf-to-another-swf-in-as3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!