# Using a button inside mc

**URL:** <https://forum.kirupa.com/t/using-a-button-inside-mc/63257>\
**Category:** Uncategorized\
**Created:** [September 4, 2004, 3:21pm UTC](https://forum.kirupa.com/t/using-a-button-inside-mc/63257 "2004-09-04T15:21:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mad\_man](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@mad\_man](https://forum.kirupa.com/u/mad_man)\
**Post date:** [September 4, 2004, 3:21pm UTC](https://forum.kirupa.com/t/using-a-button-inside-mc/63257/1 "2004-09-04T15:21:34Z")

</div>

hello i have 3 scenes.  
on the third scene i have a mc which holds a button and i put action script into the button where on release gotoandplay scene 1 frame 1 but when i play the movie nothing happens when i click the button. But for some reason if i take the button out of the mc it works. Can anyone help me. 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:** [September 4, 2004, 3:32pm UTC](https://forum.kirupa.com/t/using-a-button-inside-mc/63257/2 "2004-09-04T15:32:24Z")

</div>

You probably have some AS on that mc that is killing the mouse events for the button.  
You cannot have nested mouse events.

---

<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:** [September 4, 2004, 4:21pm UTC](https://forum.kirupa.com/t/using-a-button-inside-mc/63257/3 "2004-09-04T16:21:39Z")

</div>

It could either be what claudio mentioned, or it could also be that you didn’t define the level:[AS]on (release) {  
\*\*\_root.\*\*gotoAndPlay(“FrameLabel”);  
}[/AS]

---

<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:** [September 4, 2004, 4:56pm UTC](https://forum.kirupa.com/t/using-a-button-inside-mc/63257/4 "2004-09-04T16:56:42Z")

</div>

ok it didnt work. So how can i make a button inside a mc to take me to a diff scene? or is it impossible

---

<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:** [September 4, 2004, 7:53pm UTC](https://forum.kirupa.com/t/using-a-button-inside-mc/63257/5 "2004-09-04T19:53:16Z")

</div>

is there a way i can fix it or not?

---

<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:** [September 4, 2004, 9:28pm UTC](https://forum.kirupa.com/t/using-a-button-inside-mc/63257/6 "2004-09-04T21:28:24Z")

</div>

> [@mad\_man](#):
>
> ok it didnt work. So how can i make a button inside a mc to take me to a diff scene? or is it impossible

That script I gave you should’ve worked, unless like claudio said, you have actions on the Movie Clip containing the button.

---

<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:** [September 4, 2004, 11:53pm UTC](https://forum.kirupa.com/t/using-a-button-inside-mc/63257/7 "2004-09-04T23:53:48Z")

</div>

i tried it didnt work  
Ok umm so i am trying to get to Scene 1 from Scene 3 by clicking a button inside a mc which is on the scence 3.  
The action on the button is:  
on (release) {  
\_root.gotoAndPlay(“Scene 1”, 1);  
txt1.text = “hey”;  
}

If someone can see wut i am doing wrong i will 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:** [September 5, 2004, 7:37pm UTC](https://forum.kirupa.com/t/using-a-button-inside-mc/63257/8 "2004-09-05T19:37:20Z")

</div>

ok… maybe i’m wrong. but… is it posible to directly access frames with gotoAndPlay…

i always thought you just can access frames you first gave a name to in the properties panel…
