# \[MX\] button inside movie clip

**URL:** <https://forum.kirupa.com/t/mx-button-inside-movie-clip/9335>\
**Category:** Uncategorized\
**Created:** [December 10, 2002, 1:01am UTC](https://forum.kirupa.com/t/mx-button-inside-movie-clip/9335 "2002-12-10T01:01:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![waffe](https://avatars.discourse-cdn.com/v4/letter/w/c37758/32.png) [@waffe](https://forum.kirupa.com/u/waffe)\
**Post date:** [December 10, 2002, 1:01am UTC](https://forum.kirupa.com/t/mx-button-inside-movie-clip/9335/1 "2002-12-10T01:01:58Z")

</div>

I thought I had this down but things haven’t been working today.

I have a movie clip with an instance name called contact\_mc.  
Inside that mc I have a button called contact\_btn.  
I have a call back button function on the main timeline that looks like this

\_root.contact\_mc.contact\_btn.onPress = function() {  
\_root.contact\_mc.gotoAndPlay(2);  
trace(“hi”)  
}

It does not work, no trace and the mc does not play.

Anyone know why?

---

<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:** [December 10, 2002, 9:31pm UTC](https://forum.kirupa.com/t/mx-button-inside-movie-clip/9335/2 "2002-12-10T21:31:09Z")

</div>

Here is an fla, please take a look.

---

<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:** [December 10, 2002, 10:03pm UTC](https://forum.kirupa.com/t/mx-button-inside-movie-clip/9335/3 "2002-12-10T22:03:26Z")

</div>

Ok I’m guessing that you wanted your form to slide out when the button is pressed right? If that is what you’re trying to achieve then here’s the fla, I fixed it so now it slides in and out. Hope that is what you need. =)

---

<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:** [December 10, 2002, 10:04pm UTC](https://forum.kirupa.com/t/mx-button-inside-movie-clip/9335/4 "2002-12-10T22:04:33Z")

</div>

I fingered it out:P  
The problem has to do with group\break controll.

Go inside the movie clip select the graphics and hit ctrl + b,  
fix the tween and instance name, and it works.

Good to know I guess, just another rule for group\ungroup.

---

<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:** [December 10, 2002, 10:58pm UTC](https://forum.kirupa.com/t/mx-button-inside-movie-clip/9335/5 "2002-12-10T22:58:41Z")

</div>

I see you used two different layers guess thats kinda like the button being ungrouped.

Peace(-:
