Answers

Question and Answer:

  Home  SWFObject

⟩ Can you please explain how to fix a "Line 56 Out of Memory" error, when unloading a page in Internet Explorer using earlier versions of Flash Player 9 and multiple SWFs using ExternalInterface?

This issue was introduced with the release of Flash Player 9, and is fixed in recent versions of Flash Player 9. You can fix it for the earlier versions by adding the following JavaScript code in the head of your (X)HTML page:

<!--[if IE]>

<script type="text/javascript">

function fixOutOfMemoryError() {

__flash_unloadHandler = function() {};

__flash_savedUnloadHandler = function() {};

}

window.attachEvent("onbeforeunload", fixOutOfMemoryError);

</script>

<![endif]-->

 231 views

More Questions for you: