prova a vedere qui , e' quello che ti serve?
io uso flash 5.
due clip mc , tasto ed anim.
anim si sposta e cambia colore.
1° frame della scena
codice:
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;
azione del tasto
codice:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
startDrag (this, true, 100, 280, 476, 280);
} else {
this.stopDrag();
}
}
azione dell'anim
codice:
onClipEvent (enterFrame) {
frame=Math.round((_root.tasto._x-_root.tasto.initX)/_root.fattore)
this.gotoAndStop(frame)
}