e allora eccoci qua nel mc metti questo:
codice:
this.initX = this._xscale;
this.fineX = 500;
this.acc = 1.8;
this.ine = 1.7;
this.grandezza = null;
myFunc = function () {
this.muoviX = (this.muoviX + (this.grandezza - this._xscale) / this.acc) / this.ine;
this.muoviY = (this.muoviY + (this.grandezza - this._yscale) / this.acc) / this.ine;
this._xscale += this.muoviX;
this._yscale += this.muoviY;
if (this._xscale == this.grandezza) {
this.onEnterFrame = null;
}
};
this.onRollOver = function() {
this.grandezza = this.fineX;
this.onEnterFrame = myFunc;
};
this.onRollOut = this.onReleaseOutside = function () {
this.grandezza = this.initX;
this.onEnterFrame = myFunc;
};