3 Replies Latest reply on Jun 2, 2014 11:00 AM by Ned Murphy

    Timer - How to stop it?



      I am learning how to make a timer to my game. It is something like "Who wants to be a millionaire?" I have 15 questions. There is timer for each question:60 seconds.... When I click on an answer I go on next frame, but my timer does not stop. What should I add ( and where ) to stop my timer when I clik an answer? My code for the timer is:

      timer = 60;

      countdown = function(){



        gotoAndPlay(20); stop();



      countdownInterval = setInterval(countdown,1000);