Rom*_*gan 6 apache-flex flex3 actionscript-3 flex4
如何解决Adobe Flex错误:"错误#2036:加载从未完成"?
小智 6
不要忘记您还可以向加载器添加IOErrorEvent侦听器,以便您可以为自己跟踪更多信息.下面的代码是一般的启动程序,它可能需要更多信息才能在flash/flex中实际运行.
swfLoaderInstance:SWFLoader = new SWFLoader();
swfLoaderInstance.source = "someSWFFile.swf";
swfLoaderInstance.addEventListener(IOErrorEvent.IO_ERROR, handleError);
public function handleError(event:IOErrorEvent):void{
trace(event.target);
//etc...
}
Run Code Online (Sandbox Code Playgroud)