/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
stop(); // this extra step is a needed workaround, for the " stage.stageWidth not reported correctly in IE7 " bug. addEventListener(Event.ENTER_FRAME, added); function added(e:Event):void { if (stage.stageWidth != 0) { gotoAndStop(2); removeEventListener(Event.ENTER_FRAME, added); } }