Originariamente inviato da enigma_79
cosa mi consigli???
questa
codice:
MovieClip.prototype.move = function(targetRot, targetXsc, targetYsc, targetX, targetY) {
this._rotation = this._rotation+(targetRot-this._rotation)/4;
this._xscale = this._xscale+(targetXsc-this._xscale)/4;
this._yscale = this._yscale+(targetYsc-this._yscale)/4;
this._x = this._x+(targetX-this._x)/4;
this._y = this._y+(targetY-this._y)/4;
if( this.__math == undefined ) {
this.__math = Math;
}
if(
this.__math.round( this._x ) == this.__oldx &&
this.__math.round( this._y ) == this.__oldy &&
this.__math.round( this._xscale ) == this.__oldsx &&
this.__math.round( this._yscale ) == this.__oldsy &&
this.onEnterFrame != undefined
){
this._x = targetX;
this._y = targetY;
this._xscale = targetXsc;
this._yscale = targetYsc;
delete this.onEnterFrame;
}
else {
this.__oldx = this.__math.round( this._x );
this.__oldy = this.__math.round( this._x );
this.__oldsx = this.__math.round( this._x );
this.__oldsy = this.__math.round( this._x );
}
};