# Sound Button!

**URL:** https://forum.kirupa.com/t/sound-button/106658
**Category:** Uncategorized
**Created:** [April 7, 2004, 6:07pm UTC](https://forum.kirupa.com/t/sound-button/106658 "2004-04-07T18:07:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mdempsey](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@mdempsey](https://forum.kirupa.com/u/mdempsey)
#### Post date: [April 7, 2004, 6:07pm UTC](https://forum.kirupa.com/t/sound-button/106658/1 "2004-04-07T18:07:37Z")

</div>

Hey all i need a button, which on click stops the music which is already playing, but then on click again, starts the music off again, is this possible, if it is can someone show me the actionascript or what is needed for this to be accomplished?

Thanks!  
Matt

---

<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: [April 7, 2004, 6:14pm UTC](https://forum.kirupa.com/t/sound-button/106658/2 "2004-04-07T18:14:52Z")

</div>

Check out [www.kennybellew.com](http://www.kennybellew.com) 🙂

---

<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: [April 7, 2004, 6:28pm UTC](https://forum.kirupa.com/t/sound-button/106658/3 "2004-04-07T18:28:52Z")

</div>

```auto

my_btn.onRelease=function(){
stopAllSounds();
};
//
my_Other_btn.onRelease=function(){
my_sound =new Sound();
my_sound.loadSound("myMp3.mp3",true);
};
//streams the mp3 from the server ..

```

hope this helps …  
cheers
