Revision: 14439
Updated Code
at June 4, 2009 06:01 by sidneydekoning
Updated Code
/* Use if your objects position is based on stage.stageWidth and stage.stageHeight. When refreshed it traces 0 for stageWidth and stageHeight */ function startApp():void { // make it call an function on resize stage.addEventListener(Event.RESIZE, resizeHandler); // call that resizeHandler again (for browsers like IE 6) resizeHandler(); } function resizeHandler(e:Event = null):void { // check if the Height and Width is bigger than zero and act accordingly. if ( stage.stageHeight > 0 && stage.stageWidth > 0 ) { // safe area. Do normal resize } }
Revision: 14438
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 4, 2009 05:55 by sidneydekoning
Initial Code
function startApp():void { // make it call an function on resize stage.addEventListener(Event.RESIZE, resizeHandler); // call that resizeHandler again (for browsers like IE 6) resizeHandler(); } function resizeHandler(e:Event = null):void { // check if the Height and Width is bigger than zero and act accordingly. if ( stage.stageHeight > 0 && stage.stageWidth > 0 ) { // safe zone. Add code here. } }
Initial URL
Initial Description
Initial Title
Stage Resize Refresh IE 6 Bug Fix
Initial Tags
resize, ie6
Initial Language
ActionScript 3