开发者

How to access Singleton in external AS3 SWF

开发者 https://www.devze.com 2023-02-12 05:27 出处:网络
How can you a开发者_如何学Cccess a singleton instance within a loaded swf from the loading swf?In your loading swf you can do :

How can you a开发者_如何学Cccess a singleton instance within a loaded swf from the loading swf?


In your loading swf you can do :

myLoader.contentLoaderInfo.applicationDomain.getDefinitionByName("managerPackage::EventManager").getInstance()

"managerPackage" must be replaced by the full package name of EventManager class.

0

精彩评论

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