开发者

AS3 Error #2044. Once dissmissed the app works fine

I'm working in as3 and my code is producing an error: "Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed."

Other then the fact that the app is producing this error and interrupting users 开发者_高级运维who have a the debug version of the adobe flash player the app works just fine, I "Dismiss All" errors and

I've been debugging the program, stepping through one line at a time, trying to see exactly what it's failing to load and I can figure it out. From what research I've done it seems like the error is caused by urls being wrong or resources not being present, but as I've said, the app works exactly as expected.

here is a link to the app if you have debugger version of flash you'll see when it happens: http://www.playmatics.com/parents_connect/


Assuming you are loading files off a server, I would suggest looking for server errors on file requests as this could be the source of your problem.

However, you might still want to properly handle the event thrown by the player in order to avoid the error from being displayed:

var loader:Loader = new Loader();
loader.addEventListener(IOErrorEvent.IOError, handleIOErrorEvent);

var urlReq:URLRequest = new URLRequest('srcURL');
loader.load(urlReq);

protected function handleIOErrorEvent(event:IOErrorEvent):void { 
    trace('handleIOErrorEvent: ' + event);
}

Hope this helps.


UPDATE

Not related to your problem... two files appear as not found – 404 errors – on your server:

http://www.playmatics.com/parents_connect/history/history.js http://www.playmatics.com/parents_connect/history/history.css

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜