prova così...
codice:
//
MovieClip.prototype.muovi = function (incr) {
arrivo = this._x+incr;
step = 5;
this.onEnterFrame = function () {
if (incr > 0) {
if ((arrivo-this._x) > 0.5) {
partenza = this._x;
tratto = (arrivo-partenza)/step;
this._x += tratto;
} else {
delete this.onEnterFrame;
}
} else {
if ((this._x-arrivo) > 0.5) {
partenza = this._x;
tratto = (partenza-arrivo)/step;
this._x -= tratto;
} else {
delete this.onEnterFrame;
}
}
}
}
//
In pratica devi passare un valore positivo, per andare in un senso, ed uno negativo per andare nell'altro.
Fammi sapere perché NON l'ho provato.