Hey, looking for some help with a simple script i have. This is the script i have.

Code:
onClipEvent (enterFrame) {
	if ((this.hitTest(_root.XXX))) {
		_root.YYY.nextFrame();
	}
}
Basically what this does is that once XXX hits YYY it continously goes to the next frame over and over again (basically a play effect)
Could someone help me modify this so that once XXX hits YYY it only goes to the next frame and then stops?