Originariamente inviato da Uanne
Per aggiungere la rotazione e l'alpha:
basta così, ciaocodice:MovieClip.prototype.funzione = function(x,y,a,sx,sy,alfa,steps){ this.onEnterFrame = function(){ this._x = this._x + (x -this._x)/steps; this._y = this._y + (y -this._y)/steps; this._rotation = this._rotation + (a - this._rotation)/steps; this._xscale = this._xscale + (sx -this._xscale)/steps; this._yscale = this._yscale + (sy -this._yscale)/steps; this._alpha = this._alpha + (alfa -this._alpha)/steps; diffx = Math.abs(x -this._x); diffy = Math.abs(y -this._y); diffrot = Math.abs(a -this._rotation); diffsx = Math.abs(sx -this._xscale); diffsy = Math.abs(sy -this._yscale); diffalfa = Math.abs(alfa -this._alpha); if(diffx < 0.3 && diffy < 0.3 && diffsx < 0.3 && diffsy < 0.3 && diffrot < 0.3 && diffalfa < 0.3){ this._x = x; this._y = y; this._xscale = sx; this._yscale = sy; this._rotation = a; this._alpha = alfa; delete this.onEnterFrame; } } }![]()
e la sfocatura?![]()
grazie1.000.000 ciao..
![]()