Forum Discussion
JasonBarr-1999c
3 years agoCommunity Member
Javascript Timer
Hi all. I have a java script timer that executes on a slide. When I replay the screen, I need it to reset the timer. What happens right now, is that it seems to add a new timer along with the pre...
MathNotermans-9
3 years agoCommunity Member
Share a storyline file with this... much easier to debug.
My best guess without having a Storyline sample to play with...
use a variable for your timeout.var initialTimeOut = setTimeout( updateTimer, time.getUTCMilliseconds() + 500 );
Then whenever you go to a next slide or for whatever reason you need to clear the timer you can call it like this.clearTimeout( initialTimeOut );
Ofcourse then you have to set the initialTimeOut again to use the timer.
Related Content
- 3 months ago