开发者

to pass variable from one swf to another swf in as3

开发者 https://www.devze.com 2023-01-05 10:15 出处:网络
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!

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!

Rega开发者_如何学运维rds, Sagar


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


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.

0

精彩评论

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