# When they hit, go to next frame

**URL:** https://forum.kirupa.com/t/when-they-hit-go-to-next-frame/31461
**Category:** Uncategorized
**Created:** [September 23, 2003, 2:50am UTC](https://forum.kirupa.com/t/when-they-hit-go-to-next-frame/31461 "2003-09-23T02:50:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![SetroGamer](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@SetroGamer](https://forum.kirupa.com/u/SetroGamer)
#### Post date: [September 23, 2003, 2:50am UTC](https://forum.kirupa.com/t/when-they-hit-go-to-next-frame/31461/1 "2003-09-23T02:50:34Z")

</div>

this is what I have for that:

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

```

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