Forum Discussion
ToniLee-Ostrows
4 years agoCommunity Member
Stop / reset JavaScript in a storyline
Hello, I have a timer that I built from a Storyline provided in another post; it uses a javascript snippet to start the timer and works great however, I am trying to add a feature to stop the timer...
MathNotermans-9
4 years agoCommunity Member
The moment you leave a slide...all JS related things not set in global variables or Storyline variables ( those are global too ) are gone. Im gonna make some samples in Storyline to share to explain the scope thing better. That way its a lot clearer.
The sample you sent me works because it uses Date as a global object. The current Date and Time are always the same ( timezone dependant ofcourse ) and each slide compares and calculates timedifference with the start time.
I will make samples showing explaining scope and a global timer script solution.
Only not this week ;-)