Originariamente inviato da Uanne
Così è a posto:
codice:MovieClip.prototype.funzione = function(x,y,sx,sy,steps){ this.onEnterFrame = function(){ this._x = this._x + (x -this._x)/steps; this._y = this._y + (y -this._y)/steps; this._xscale = this._xscale + (sx -this._xscale)/steps; this._yscale = this._yscale + (sy -this._yscale)/steps; diffx = Math.abs(x -this._x); diffy = Math.abs(y -this._y); diffsx = Math.abs(sx -this._xscale); diffsy = Math.abs(sy -this._yscale); if(diffx < 0.3 && diffy < 0.3 && diffsx < 0.3 && diffsy < 0.3){ this._x = x; this._y = y; this._xscale = sx; this._yscale = sy; delete this.onEnterFrame; } } }
ok..ora sembra k vada tutto bene..![]()
potresti modificarlo in modo da avere un valore alpha?![]()
e poi nel nuovo proto non c'è + il valore "a" (rotazione)..se aggiungo questo
è giusto?sn nelle tue mani..Codice PHP:
this._rot = (Number(a)-this._rotation)/Number(steps);
if (this._steps) {
this._rotation += this._rot;
![]()