3 Replies Latest reply on Nov 11, 2011 8:26 AM by Ned Murphy

    How can I get this flash timer to work?

    ytornatta

      I am working on a flash game for an assignment, however when I follow the directions the timer does not count down.  I do not receive a syntax error, yet it still doesn't work.  I am stuck. 

       

      //SET TIMER

      Time = 40;

      Time_Text.text = Time;

      //TIMER

      countDown = function(){

          Time--;

          Time_Text.text = Time;

          if (Time == 0){

          Ship.gotoAndPlay("sink");

          gotoAndStop("Lose");

      }

      }