# Hit test problem when using it as a button

**URL:** <https://forum.kirupa.com/t/hit-test-problem-when-using-it-as-a-button/34778>\
**Category:** flash\
**Created:** [November 6, 2003, 9:46am UTC](https://forum.kirupa.com/t/hit-test-problem-when-using-it-as-a-button/34778 "2003-11-06T09:46:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtesp](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jtesp](https://forum.kirupa.com/u/jtesp)\
**Post date:** [November 6, 2003, 9:46am UTC](https://forum.kirupa.com/t/hit-test-problem-when-using-it-as-a-button/34778/1 "2003-11-06T09:46:31Z")

</div>

I have a button (actually a mc) that uses hittest to get a nice smooth fading effect. I want to use this button to jump to a frame inside a “content” movie clip. It’s kind of hard to explain, but I have attached the fla. I’m stumped on this one…if anyone can help, I’d appreciate it. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 6, 2003, 10:39am UTC](https://forum.kirupa.com/t/hit-test-problem-when-using-it-as-a-button/34778/2 "2003-11-06T10:39:06Z")

</div>

1. You’re not targetting the movie clip correctly. Use [font=courier new]\_parent[/font] to reference the parent movie clip (or timeline), so that the movie clip _cliper_ can be found:

```auto
on (release) {
	_parent.cliper.gotoAndStop("circle");
}

```

1. You forgot to assign the frame label, _circle_. 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 6, 2003, 9:53pm UTC](https://forum.kirupa.com/t/hit-test-problem-when-using-it-as-a-button/34778/3 "2003-11-06T21:53:03Z")

</div>

Ahhh! Thank you! You know, I mocked this version up really quick…in my real movie I had “circle” labled. The \_parent statement is what I needed!

So in theory, \_parent is like “going down (or back) a level”? Is that right?  
Thanks a million!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 6, 2003, 11:41pm UTC](https://forum.kirupa.com/t/hit-test-problem-when-using-it-as-a-button/34778/4 "2003-11-06T23:41:21Z")

</div>

Yep, that’s right. 🙂

And you’re welcome. 😉
