This content has been marked as final. Show 3 replies
You'll need to create an eventListener to listen for the change event on your combobox.
Thanks FlashTastic. Ive popped the code n at the bottom but im no further forwards.
In your code you have - //add code to play song.
This is where im falling down. I tried entering playSong() but everytime i selected a song it just played the next song in the list rather than the selected one.
The problem is that your playsong function doesn't take any arguments.
Each time you call playsong, it has the logic in it to play the next song, not play a selected song, so you'll have to modify that function. Since your variable names are a bit cryptic, and you seem to have a custom object type of Song in there, it's a little harder to write code that might work.
Look at the following example and you might be able to figure it out from there.