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 )