Actionscript: pause
Actionscript: pause
Out of context: Reply #6
- Started
- Last post
- 36 Responses
- Anarchitect0
MovieClip.prototype.pause = function(status, delay) {
clearInterval(this.pauseLoop);
if (status) {
this.stop();
this.pauseLoop = setInterval(this, "pause", delay, false);
} else {
clearInterval(this.pauseLoop);
this.play();
}
};
trigger.onPress = function() {
myMC.pause(true, 2000);
};