Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Browser: Other (specify version)
Language Found: Chinese, Simplified
Description
Steps to reproduce:
1. load a module
var info:IModuleInfo = ModuleManager.getModule(url);
if(info.ready)
{ addInternal(info,moduleId, moduleName,icon, closable ); } else{
var f:Function = function(e:mx.events.ModuleEvent)
;
info.addEventListener(mx.events.ModuleEvent.READY, f);
info.load(flash.system.ApplicationDomain.currentDomain);
}
2. dispatch a org.lcf.util.ModuleEvent in a module to outter container for openning other module.
3.
Actual Results:
a org.lcf.util.ModuleEvent Object is translated to a flash.events.Event Object. That's abnormal.
TypeError: Error #1034: 强制转换类型失败:无法将 flash.events::Event@11e2bd61 转换为 org.lcf.util.ModuleEvent。
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.lcf::Container/dispatch()[C:\works\flexspace\Lcf\src\org\lcf\Container.as:81]
at org.lcf.util::EventTransfer/reDispatchEvent()[C:\works\flexspace\Lcf\src\org\lcf\util\EventTransfer.as:45]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.lcf::Container/dispatch()[C:\works\flexspace\Lcf\src\org\lcf\Container.as:81]
at Test2/showC()[C:\works\flexspace\Lcf_example\src\Test2.mxml:14]
at Test2/__b_click()[C:\works\flexspace\Lcf_example\src\Test2.mxml:20]
Expected Results:
org.lcf.util.ModuleEvent is normally dispatched
Workaround (if any):
flex 4