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.
精彩评论