Non Penso proprio, basta guardare l'as evidenziata in rosso, non esiste mai un play().
Cmq qui l'esempio
http://www.rempox.it/forum/animation..._controll.html
http://www.rempox.it/forum/animation...n_controll.fla
Ciaocodice:anim.stop() tasto.initX=tasto._x tasto.initY=tasto._y // il cursore lo sposto per una ddistanza pari // al numero delle frame di anim * fattore fattore=4 tasto.MaxX=tasto.initX + anim._totalframes*fattore tasto.onPress=function(){ startDrag(this, false, this.initX, this.initY, this.maxX, this.initY) } tasto.onRelease=function(){ stopDrag() } anim.onEnterFrame=function(){ frame=Math.round((_root.tasto._x-_root.tasto.initX)/_root.fattore) this.gotoAndStop (frame) }![]()

Rispondi quotando