|
-
Well, its the law of the Sod, but I think i've fixed it myself (4 once) about 5 mins after making this post..
Simple really, just add another clear interval before the code is initialised.. seems to fix it..
clearInterval(nDelayID);
stop();
var nDelayID:Number = setInterval(this, "pause", 6000);
// where 4000 is 4000 milliseconds
function pause():Void {
clearInterval(nDelayID);
play();
// or nextFrame();
}
-
pausing
but how do you pause a movieclip in general. not for a few seconds, but until the user unpauses it. i see that the pause() function was removed when AS2.0 came out for some retarded reason.
all i want to do is pause a MC on button press, and unpause (resume from current frame) when the button is pressed again. should be the simplest things in the world. im writing AI in sidescrollers with complicated bosses/powerups/levels/animations but i can't pause lol...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|