flex在模板中加载模块转型失败的处置
flex在模板中加载模块转型失败的处理
如果在A模块中又加载B模块
对event.module.factory.create();出来的对象转型接口会导致null.
但在对象的确是实现了接口的。
应该在loader上设置域,具体是:
_moduleLoader.applicationDomain = ApplicationDomain.currentDomain;
如果在A模块中又加载B模块
对event.module.factory.create();出来的对象转型接口会导致null.
但在对象的确是实现了接口的。
应该在loader上设置域,具体是:
_moduleLoader.applicationDomain = ApplicationDomain.currentDomain;