Actionscript: pause
Actionscript: pause
Out of context: Reply #8
- Started
- Last post
- 36 Responses
- F_180
i might be able to do you one better.
MovieClip.prototype.timePause = function(s)
//var timePause = function (s)
{
var mc = this;
var ms = 1000 * s;
var timer = mc._name + "_stimer";
mc.stop();
mc.createEmptyMovieClip(timer,10...
mc[timer].time_in = getTimer();
mc[timer].onEnterFrame = function(){
if((getTimer() - this.time_in) >= ms){
mc.gotoAndPlay(mc._currentframe + 1);
this.removeMovieClip();
}
};
}---> drop that into the first frame of your movie.
then, on the frame you wish to pause, just add:
this.timePause (#);
# = number of seconds you want the timeline to stay paused for.
works like a charm.