Return to Snippet

Revision: 30945
at August 26, 2010 03:30 by Bonky


Initial Code
stage.addEventListener(Event.RESIZE, resizeHandler);
stage.dispatchEvent(new Event(Event.RESIZE)); // force stage resize event for normal cases 

function resizeHandler(event:Event):void {
  if (stage.stageHeight > 0 && stage.stageWidth > 0) {
    stage.removeEventListener(Event.RESIZE, resizeHandler); // only execute once
    // your initialization code here
  }
}

Initial URL

                                

Initial Description

                                

Initial Title
Fix Internet Explorer Stage Dimensions

Initial Tags

                                

Initial Language
ActionScript 3