Looking for help from anyone who knows the ins and outs of setInterval
I’m stopping on a keyframe, then using setInterval to advance after a specific timeout. The first time through everything works fine, but when the movie loops (user-initiated) and it gets to that keyframe with setInterval again, setInterval immediately advances the timeline and doesn’t wait any time at all.
The keyframe in question is coded like the following:
setInterval(function(){gotoAndPlay("loaded");},5000);
stop();
All I need is for that keyframe to wait every time it is hit, and always wait for the setInterval timeout before advancing.