allora...
ho provato a fare come dici tu...almeno
il problema è che appena esco dal clip...mi si blocca dove lo lascio...
ho utilizzato la funzione:
codice:
this.onEnterFrame = function() {
//this._rotation = Math.round(this._rotation);
this._rotation = rot_0*Math.sin(puls*t)*Math.exp(-smorz*t)+k*Math.sin(puls*t)*Math.exp(-smorz*t);
t++; };
this.onMouseMove = function() {
dir_dx = prev_xmouse<_root._xmouse ? true : false;
prev_xmouse = _root._xmouse;
};
this.onRollOver = function() {
smorz = .08;
rot_0 = this._rotation
vel = dir_dx ? -vel_0 : vel_0;
k = 1.5*(vel+smorz*rot_0)/puls;
t = 0;
this.intpuls_mc.colore.color.gotoAndplay(1)
};
this.onRollOut=function(){
delete onEnterFrame
};
forse il RollOut non è il più adatto vero?