# Need help w/ listBox + music

**URL:** <https://forum.kirupa.com/t/need-help-w-listbox-music/93714>\
**Category:** Uncategorized\
**Created:** [November 4, 2003, 1:56am UTC](https://forum.kirupa.com/t/need-help-w-listbox-music/93714 "2003-11-04T01:56:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francky683](https://avatars.discourse-cdn.com/v4/letter/f/87869e/32.png) [@Francky683](https://forum.kirupa.com/u/Francky683)\
**Post date:** [November 4, 2003, 1:56am UTC](https://forum.kirupa.com/t/need-help-w-listbox-music/93714/1 "2003-11-04T01:56:27Z")

</div>

Hi everybody,  
I just joined this forum like 1 week ago and i posted about making a listBox that would be used to play music … I need help with a little code in the listBox :

music = new Sound(this);  
list.addItem(“Music”, music.attachSound(“barry”));  
list.addItem(“Music1”, music.attachSound(“beegees”));

“music” is the name used for the play/stop button. I want that when i’m choosing like the “Music1” it plays the song named beegees … With this code, when i’m clicking play it’s playing the second one and even if i click on “Music” it’s still playing the second one … Could someone correct my code or tell me where i’m wrong … It would be really appreciated 😉

Thanks,

~Francky683~

Btw if you can’t understand me plz tell me 😉 (sry i’m french and i can’t explain as well as you guys 😉 )
