Return to Snippet

Revision: 20809
at November 25, 2009 09:12 by n8gk


Initial Code
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);
       }
}

Initial URL

                                

Initial Description

                                

Initial Title
stage.stageWidth workaround IE

Initial Tags
ie, actionscript, flash, 3

Initial Language
ActionScript 3