In orizzontale:

bar_mc.onEnterFrame=function() { var arrX:Number=_xmouse; var dx:Number=arrX-this._x; var ax:Number=dx*.1; this._x+=ax; }