вот так может быть:

Код:
MovieClip.prototype.onEnterFrame = function() {
this.distanceX = _root._xmouse-this._x;
this.distanceY = _root._ymouse-this._y;
this.distance = Math.sqrt(Math.pow(this.distanceX, 2)+Math.pow(this.distanceY, 2));
this.powerX = this._x-this.distanceX/this.distance;
this.powerY = this._y-this.distanceY/this.distance;
this.forceX = (this.forceX+(this.x-this._x)/2)/1.66;
this.forceY = (this.forceY+(this.y-this._y)/2)/1.66;
this._x = this.powerX+this.forceX;
this._y = this.powerY+this.forceY;
};