# HitTestGoto

**URL:** https://forum.kirupa.com/t/hittestgoto/183741
**Category:** flash
**Created:** [March 29, 2006, 5:20pm UTC](https://forum.kirupa.com/t/hittestgoto/183741 "2006-03-29T17:20:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![butman](https://avatars.discourse-cdn.com/v4/letter/b/ee7513/32.png) [@butman](https://forum.kirupa.com/u/butman)
#### Post date: [March 29, 2006, 5:20pm UTC](https://forum.kirupa.com/t/hittestgoto/183741/1 "2006-03-29T17:20:13Z")

</div>

I wonder why this arent working:

```auto
onClipEvent (enterFrame) {
 if (this.hitTest(_root.bomb1)) {
  gotoAndStop("GameOver", 1);
 }
}

```

Thanks Albert:b:

---

<div class="post-metadata">

### Author: ![B\_L\_U\_E](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@B\_L\_U\_E](https://forum.kirupa.com/u/B_L_U_E)
#### Post date: [March 29, 2006, 5:43pm UTC](https://forum.kirupa.com/t/hittestgoto/183741/2 "2006-03-29T17:43:29Z")

</div>

you’ll have to give more info than that. my guess is your gotoAndPlay reference. [AS]onClipEvent (enterFrame) {  
(this.hitTest(\_root.bomb1)) ? \_root.gotoAndStop(“GameOver”, 1) : null;  
}[/AS]
