5 Replies Latest reply on Feb 14, 2014 6:24 AM by Glyn1234

    Reset interval timer on button


      I'm building a touch screen presentation for a booth and I need to set a timer that states that if there is no activity it goes back to frame 1.

      I need if possible to reset the timer if someone presses any button to start again.


      I have a setInterval time set in the first frame:


      var timer= setInterval(timeOut,6000);

      function timeOut():Void{





      A button click is:


      on (press) {






      I placed the clearinterval(timer) in the button to stop the timer but have not been able to reset.


      Any help would be appreciated.