/ Published in: ActionScript
Usar pauseFor(tiempoDeseado); para pausar.
Expand |
Embed | Plain Text
this.createEmptyMovieClip("timer",50); timer.onEnterFrame = function() { if (this.startTime>0) { var diff = getTimer()-this.startTime; if (diff>this.timerLength) { this.target.play(); this.startTime = 0; } } }; function pauseFor(theTime) { stop(); timer.timerLength = (theTime*1000); timer.startTime = getTimer(); timer.target = this; }
You need to login to post a comment.
