1 Reply Latest reply on Jul 12, 2010 1:49 AM by DazFaz

    How to delay frame by second

    toastiesmonster

      is the following "getTimer" script correct to delay a dedicated frame in the animation by 5 seconds?  is there any additional criteria to add in order to make it more solid? thx.

       

      //
      stop();
      t = getTimer();
      onEnterFrame = function(){
          if(getTimer()>= t+5000){
              play();
              onEnterFrame = undefined;
          }
      }
      //