阶段调整刷新IE 6错误修复
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了阶段调整刷新IE 6错误修复相关的知识,希望对你有一定的参考价值。
/* 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 } }
以上是关于阶段调整刷新IE 6错误修复的主要内容,如果未能解决你的问题,请参考以下文章