# Movieclip containing buttons -not working

**URL:** https://forum.kirupa.com/t/movieclip-containing-buttons-not-working/89867
**Category:** flash
**Created:** [May 12, 2005, 8:13am UTC](https://forum.kirupa.com/t/movieclip-containing-buttons-not-working/89867 "2005-05-12T08:13:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![olki](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/olki/32/157_2.png) [@olki](https://forum.kirupa.com/u/olki)
#### Post date: [May 12, 2005, 8:13am UTC](https://forum.kirupa.com/t/movieclip-containing-buttons-not-working/89867/1 "2005-05-12T08:13:52Z")

</div>

Hi,

I’m trying to do a really simple mp3-player for a website and I’ve stumbled on a small problem.

I’v created two buttons, Start and Stop, that I’ve have put into a movieclip. I’ve done so beacause I only want the user so see one button at a time. (I’ve managed to make it work with 2 buttons, but I’d like to know why it doesn’t work with a movieclip and 2 buttons)  
So when the user clicks the “Start” button the sound starts playing and the movieclip is set to frame 2 where the stop button is. So far so good, but when I’m trying to click the “Stop” button nothing happens. Here’s the AS:

```php

stop();
current_mp3 = "audio.mp3";
function primeSound() {
	mySound = new Sound();
	mySound.loadSound(current_mp3, true);
}
playing = false;
_root.control_mc.play_btn.onRelease = function() {
	primeSound();
	_root.control_mc.gotoAndStop(2);
};
_root.control_mc.stop_btn.onRelease = function() {
	mySound.stop();
	playing = false;
	_root.control_mc.gotoAndStop(1);
};

```

I would be thrilled to learn why this does not work … kind regards Olki
