Load AS2 SWF Into AS3 SWF and pass vars in URL

后端 未结 5 1592
Happy的楠姐
Happy的楠姐 2020-12-06 21:52

I\'ve got an AS3 SWF that I\'m going to be loading other SWFs into. These child SWFs all take a single parameter on the URL. I can\'t seem to get it working when loading an

5条回答
  •  囚心锁ツ
    2020-12-06 22:22

    It's not trivial to communicate between AS2 and AS3 since they run in different virtual machines. Check this http://www.gskinner.com/blog/archives/2007/07/swfbridge_easie.html for some hints.

    Edit: If you cannot change the loaded as2 content your only options is creating a 'wrapper' as2 loader that uses the linked example above to communicate with the as3 and interfaces with the loaded as2 content using _root.varname This is not pretty but it might just work.

提交回复
热议问题