3 Replies Latest reply on Dec 19, 2006 7:08 AM by kglad

    stop count

    Ehud35new Level 1
      I got this action script

      // initialize 'counter' & 'myCounter'
      counter = myCounter.text = 0;
      // function to call every second
      updateCounter = function () {
      // increase 'counter' by 1
      counter++;
      // display result
      myCounter.text = counter;
      }
      // call 'updateCounter' once a second
      setInterval(updateCounter,1000);

      how can I add a line here that say...for example......in number 100 stop counting ???