开发者

How to access Singleton in external AS3 SWF

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜