//funzione che dà il movimento
MovieClip.prototype.muovi = function(targetX){
this.onEnterFrame = function(){
this._x = this._x + (targetX -this._x)/4;
if(Math.abs(targetX -this._x)<0.4){
this._x = targetX;
delete this.onEnterFrame;
}
}
}

//dai l'istruzione al passaggio del mouse ai tuoi pulsanti
mioPulsante1.onRollOver = function(){
rettangolo.muovi(this._x);
}
mioPulsante2.onRollOver = function(){
rettangolo.muovi(this._x);
}

ecc. ecc.