我正在从子swf向父级swf分派事件。在没有使用预加载器swf加载父级之前,它一直正常工作,但是现在父级不再能够接收来自子级的事件。我现在遇到以下错误:
TypeError: Error #1034: Type Coercion failed: cannot convert com.company.events::MyCustomEvent@22494251 to com.company.events.MyCustomEvent.
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
这是什么意思?为什么只有在将主swf包装在加载器中时才会发生这种情况?感谢任何帮助 - 我很绝望!