# Simple play and stop button

**URL:** <https://forum.kirupa.com/t/simple-play-and-stop-button/213837>\
**Category:** Uncategorized\
**Created:** [January 23, 2007, 6:12pm UTC](https://forum.kirupa.com/t/simple-play-and-stop-button/213837 "2007-01-23T18:12:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenisfam](https://avatars.discourse-cdn.com/v4/letter/k/b9bd4f/32.png) [@kenisfam](https://forum.kirupa.com/u/kenisfam)\
**Post date:** [January 23, 2007, 6:12pm UTC](https://forum.kirupa.com/t/simple-play-and-stop-button/213837/1 "2007-01-23T18:12:58Z")

</div>

I simply created an movieclip called it themusic as instance  
and put a sound init

Now on the firstframe i added these actions,

the problem is the music just keeps going , it has no effect

the code

```auto
 
play_btn.onPress = function ()
{
 trace('playing' + themusic);
 //themusic.stopAllSounds();
 themusic.play();
 
 
};
stop_btn.onPress = function ()
{
 
 trace('stopping' + themusic);
 themusic.stop();
 
 
};

```

Any ideas what im doing wrong,  
it must be realllllllllllllllllllllllllllly simple , but i am lost

ps the trace does show up when i click them buttons
