ops ... un solo accorgimento, quella proto la scrissi io, e' per MX e una piccola nota mi farebbe piacere
codice:
MovieClip.prototype.elastic = function(x, y, acc, inrz) {
// elastic prototype
// Author: [andr3a] [19/09/2003] [www.3site.it]
// instance_name.elastic(verso_x, verso_y, accelerazione, inerzia);
var spostamento_x = 0;
var spostamento_y = 0;
var checkpos = Array();
var remember = 1;
this.onEnterFrame = function() {
spostamento_x = (spostamento_x + (x - this._x) /acc) / inrz;
spostamento_y = (spostamento_y + (y - this._y) / acc) / inrz;
this._x += spostamento_x;
this._y += spostamento_y;
if( checkpos[remember-1] == (this._x+this._y) ) {
remember = 1;
delete this.onEnterFrame;
}
else {
checkpos[remember] = (this._x+this._y);
remember++;
}
}
}
grazie