When they hit, go to next frame

this is what I have for that:

onClipEvent (enterFrame) {
	if (this, hitTest(_root.ball)) {
		nextFrame();
	}
}

and it doesn’t work. Can someone please help me out here?