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