Mouse follow block

Is it possible to stop/block a mouse follow?

onClipEvent (load) {
_x = 0;
_y = 0;
speed = 10;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}

I dont wont my mc follow the pointer all over my scene.

i guess you could use some [COLOR=red]if statements[/COLOR]

if (this._x <= myMinimunX) this._x = myMinimumX
if (this._x >= myMaximumX) this._x = myMaximumX
if (this._y <= myMinimumY) this._y = myMinimumY
if (this._y >= myMaximumY) this._y = myMaximumY

or something like this by senocular
http://proto.layer51.com/d.aspx?f=660

or you can use hitTest if you don’t want it to go over a certain object!
search tutes for hitTest!