How do i cancel a hit test

i have a onEnterFrame running thats checking with hit test like so:

if (this.hitTest(black_mc)) {
// do stuff
}

how do i stop the mc referenced by “this” from checking to see if it’s touching “black_mc”.

I’ve tried just deleteing the onEnterFrame, but theres other things happening in my movie that make these two mcs touch, which is fine, but I dont want the scripts running (// do stuff) after a certain point.