I’ve been running a function that holds a frame for 5 seconds, then continues to the next desired frame. Heres my code:
stop(); // stops at the frame
seconds = 5;
function frameTime() {
seconds -= 1; // decrements seconds
if (seconds<=0) {
gotoAndPlay("whateverFrame");
}
}
setInterval(frameTime, 1000); // run every second
The code moves to “whateverFrame” I need it to, however every second it keeps going back to “whateverFrame” and doesnt continue to play the rest of the movie. Is there anyway to stop this function after seconds<=0 and break it so it doesnt keep happening even AFTER the frame is changed?