# Quick One - hittest, gotoandplay, \_parent

**URL:** https://forum.kirupa.com/t/quick-one-hittest-gotoandplay--parent/124162
**Category:** Uncategorized
**Created:** [September 30, 2004, 3:02pm UTC](https://forum.kirupa.com/t/quick-one-hittest-gotoandplay--parent/124162 "2004-09-30T15:02:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![basefetish](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@basefetish](https://forum.kirupa.com/u/basefetish)
#### Post date: [September 30, 2004, 3:02pm UTC](https://forum.kirupa.com/t/quick-one-hittest-gotoandplay--parent/124162/1 "2004-09-30T15:02:40Z")

</div>

After the HitTest, How do I use the gotoAndPlay to direct the the main timeline to goto frame 2, and not frame 2 of \_root.circle MC? with \_parent?

I know this might be a simple question, but my brain hurts from the previous ‘debugging’…

both of these give me the same results.

onClipEvent (enterFrame) {  
if (\_root.circle.hitTest(\_root.box1)) {  
gotoAndPlay(2);  
;  
}  
}

onClipEvent (enterFrame) {  
if (\_root.circle.hitTest(\_root.box1)) {  
gotoAndPlay(“Scene 1” , 2);  
;  
}  
}
