Stop drag in a certain space

I have a MC that drags and when I release it return to the inicial place.
Now it’s possible to make it stop drag normally, but only in a small part of the flash movie.

For exemple in a sqare it stops drag normally…
is that possible?

I use this code:

 
onClipEvent (load) {
origX = this._x;
origY = this._y;
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent._xmouse, _parent._ymouse)) {
this.startDrag();
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_parent._xmouse, _parent._ymouse)) {
this.stopDrag();
this._x = origX;
this._y = origY;
}
}

thanks