# Music choice

**URL:** https://forum.kirupa.com/t/music-choice/20229
**Category:** Uncategorized
**Created:** [May 6, 2003, 6:18pm UTC](https://forum.kirupa.com/t/music-choice/20229 "2003-05-06T18:18:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![blx](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@blx](https://forum.kirupa.com/u/blx)
#### Post date: [May 6, 2003, 6:18pm UTC](https://forum.kirupa.com/t/music-choice/20229/1 "2003-05-06T18:18:34Z")

</div>

hi,

i have a 3 buttons with 3 different sounds on them and a stop button. To get the song from button b, i have to stop the one playing from button a. Can somebody help me out with the code i need without having to stop them and restart?

here is my code:

on (press) {  
if (playing != true) {  
firstSound.stop(“firstSound01”);  
firstSound2.start(0, 999);  
playing = true;  
}  
}

thx

---

<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: [May 6, 2003, 6:24pm UTC](https://forum.kirupa.com/t/music-choice/20229/2 "2003-05-06T18:24:46Z")

</div>

If you want your music to play decently, you’ll always have to stop the one playing before starting another one. I don’t quite get your point, but that’ll probably be me :beam:

You might wanna use this … I’m sure there are a million better ways to do this but anyway …

[AS]on (release){  
if (playing != true){  
stopAllSounds();  
firstSound2.start(0, 999);  
}  
}[/AS]
