Quick Flash Tips #2: Handling ‘Load Never Completed’ IOErrorEvent

Categories: Articles, Other, Source code
Tags:

This is a potentially annoying error that occurs in Safari/Chrome when you hit refresh or close a tab containing Flash content. If you have the debug player you see:

Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.

It can crash Safari or, in the case of Chrome, show a ‘broken plugin’ screen, shutting down every instance of Flash Player in the process.

Fortunately the fix is easy. To handle it you must add an IOErrorEvent listener to every Loader instance in your project, including the ‘root’ Loader (i.e. the class that is the base of your main SWF).

To handle the main SWF simply add the following code to your base class. In ‘onIOError’ you can handle the error silently should you wish.

root.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);

Posted By }i{ on June 14, 2010

1 Comment

Make A Comment
  • Craig Said:

    a-ha :0. awesome tip!

Comments RSS Feed    TrackBack URL

Leave a comment

©2009 Ian McGregor. All rights reserved.
Powered by Wordpress.org