Any one help seem to be going in circles. Im building this animation which is mainly script base. Its all nearly done and client wants a skip button put in which is fine. the only problem is i have set intervals in some frames to shorten timeline usage to let scripted animation play before it moves on.
Now the problem is when the skip button is pressed it skips to the end of the animation but it goes back to the frame that had the setInterval on it.
Interval looks like this.
var nInterval = setInterval(Play, 5000);
function Play() { clearInterval(nInterval); nextFrame(); }
You can see that it just goes to next frame once the Interval is cleared. this works fine.
but….
when the the button is clicked it won’t seem to clearInterval and still runs it. This is the button script.
skip_btn.onRelease = function(){ delete this.onEnterFrame(); clearInterval(nInterval); gotoAndStop(115); }
so i’m trying to get it to clearInterval and stop at the end of the whole thing. It stops at the end but when the 5 second from the Interval is up it goes back to the frame it was on, and tries running it all again.
Anyone got any ideas.
Cheers

.
