startDrag Question

Okay, so I have this code on my object:

*on (press) {
with (_root.window1)
with (_root.window3)
with (_root.window4) {
gotoAndStop(1);
}
gotoAndPlay(2);
startDrag(this);
this.swapDepths(_root.getNextHighestDepth());
}

on (release) {
stopDrag();
}*

But it doesn’t stop dragging when I release my mouse! When I release, it just keeps moving around…what do I need to do for that?

Thank you in advance for your help!!