forse meglio
questo lo scrivi nella timeline principale
codice:
function muoviTestina(frameInit, frameFin){
_root.createEmptyMovieClip("gest", 1);
_root.gest.onEnterFrame = function(){
if(frameInit != frameFin){
if(frameInit > frameFin){
frameInit--;
_root._currentframe = frameInit;
} else if (frameInit < frameFin){
frameInit++
_root._currentframe = frameInit;
}
} else {
delete this.onEnterFrame;
}
}
}
poi lo richiami nel pulsante con
codice:
on (release){
muoviTestina(_root._currentframe, 30);
}