/ Published in: ActionScript
URL: http://www.after-hours.org/foro/viewtopic.php?p=42044#42044
setInterval
Expand |
Embed | Plain Text
var intervalo:Number; var cuenta:Number = 0; function muevoClip(vel, pos){ clip._x += vel; if(clip._x >= pos)clearInterval(intervalo); updateAfterEvent() } clip.onRelease = function(){ // (funcion, duracion, velocidad, posicion final) intervalo = setInterval(muevoClip, 20, 1, 150) }
You need to login to post a comment.
