На сцене должен быть мувик с именем "mc"

Код:
var mouseListener:Object = new Object();
mouseListener.onMouseDown = function() {
moving(_xmouse, _ymouse);
};
Mouse.addListener(mouseListener);
function moving(x:Number, y:Number) {
mc.onEnterFrame = function() {
if (Math.abs(this._x-x)<1 && Math.abs(this._y-y)<1) {
trace("deleted");
this._x = x;
this._y = y;
delete this.onEnterFrame;
}
this._x += (x-this._x)*.4;
this._y += (y-this._y)*.4;
};
}