2 Replies Latest reply on Dec 7, 2006 11:38 AM by crazyjoemilan

    timer

    Ehud35new Level 1
      I want to create a Timer (count down) and when it reach to 0 it is going to 2nd frame.....
      this is what i wrote

      onClipEvent (load) {
      var num:Number = 5;
      var fps:Number = 12;
      var militimer:Number = num*fps;
      }
      onClipEvent (enterFrame) {
      if (militimer>0) {
      militimer--;
      } else {
      gotoAndPlay(2);
      }
      _root.timer.text = Math.round(militimer/fps);
      }

      the timer is working but when it is reach to 0 ..it is not doing any thing ...!

      why is that ?

      any ideas for other scripts ?