# Getting Buttons to Work from Within a MC

**URL:** <https://forum.kirupa.com/t/getting-buttons-to-work-from-within-a-mc/95301>\
**Category:** Uncategorized\
**Created:** [November 23, 2003, 7:50pm UTC](https://forum.kirupa.com/t/getting-buttons-to-work-from-within-a-mc/95301 "2003-11-23T19:50:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![et10yl](https://avatars.discourse-cdn.com/v4/letter/e/94ad74/32.png) [@et10yl](https://forum.kirupa.com/u/et10yl)\
**Post date:** [November 23, 2003, 7:50pm UTC](https://forum.kirupa.com/t/getting-buttons-to-work-from-within-a-mc/95301/1 "2003-11-23T19:50:00Z")

</div>

Ok, so I made a movie clip that toggles the sound button. There are 2 keyframes in the MC, the first with embedded sound and the stopSounds button, the second with no embedded sound and the startSounds button. I’ve assigned the following code to the buttons:

stopSounds

```auto

on(release){
stopAllSounds(); // stop sounds
nextFrame(); // show frame with start sound button
}

```

startSounds

```auto

on(release){
prevFrame(); // go to frame with sound & stop sound button
}

```

The buttons do not seem to work in the main stage. The MC doesn’t even show up as a button unless I assigned an on(release) to the MC instance in the main stage. Shouldn’t the code in the MC work? What am I doing wrong here?

Thanks much!
