# mySound.stop questions

**URL:** https://forum.kirupa.com/t/mysound-stop-questions/22054
**Category:** flash
**Created:** [May 29, 2003, 3:23pm UTC](https://forum.kirupa.com/t/mysound-stop-questions/22054 "2003-05-29T15:23:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pares101](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@pares101](https://forum.kirupa.com/u/pares101)
#### Post date: [May 29, 2003, 3:23pm UTC](https://forum.kirupa.com/t/mysound-stop-questions/22054/1 "2003-05-29T15:23:31Z")

</div>

ok guys here is the situation

I have my buttons 12345 each othe them corresponding to a song preloaded. and i have a stop button that stops all of them now how do i get rid of the stop button so that when the user clicks on another number the corresponding song plays??

1st frame code

```php

mySound = new Sound();
mySound1 = new Sound();
mySound2 = new Sound();
mySound3 = new Sound();
mySound4 = new Sound();
mySound5 = new Sound();
mySound6 = new Sound();
mySound7 = new Sound();

```

now the button code to open the song

```php

on(press) {
if (playing!=true) {
if (playing=true); 
soundIsLoaded=1
mySoundObject1=new Sound();
mySoundObject1.setVolume(55);
mySoundObject1.loadSound("1.mp3",true) //streaming
}
_root.mySoundObject1.onSoundComplete=function() 
{playing=false;}
}

```

now for the stop button

```php

on(press) {
if (playing==true) {
playing=false;

mySound.stop()
mySound1.stop()
mySound2.stop()
mySound3.stop()
mySound4.stop()
mySound5.stop()
mySound6.stop()
mySound7.stop()
}
}

```

Im a bit confused where to put the mySound.stop in the buttons any helpers here???
