I’ve got this pause function, but I’m unable to clearInterval, I’ve tried everything. I’d like to know if someone had a pause function that was a little simpilar than the one below.
//SET PAUSE FUNCTION
//=======================================
function pause(t, v)
{
t.interval = setInterval(unPause, v, t);
t.stop();
}
function unPause(t)
{
clearInterval(t.interval);
t.play();
}
// PAUSE THIS MOVIE
//=================================
pause(this, 3000)
I’d like for it to pause when it hits a certain frame, then continue after it’s ran through the “pause”.
The above code works fine for one pass through.
Problem is, if I click buttons to jump to a new section, the interval won’t clear. I’ve tried putting the clearInterval() everywhere… on the buttons, in the same frames, other frames, beginning of movies, etc. Nothing works.
I just figured I’d try another pause method and see if I could get it to work.