# Help with mp3 player, go to the next song

**URL:** <https://forum.kirupa.com/t/help-with-mp3-player-go-to-the-next-song/179487>\
**Category:** flash\
**Created:** [February 20, 2006, 5:22pm UTC](https://forum.kirupa.com/t/help-with-mp3-player-go-to-the-next-song/179487 "2006-02-20T17:22:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lookingforcool](https://avatars.discourse-cdn.com/v4/letter/l/6de8d8/32.png) [@lookingforcool](https://forum.kirupa.com/u/lookingforcool)\
**Post date:** [February 20, 2006, 5:22pm UTC](https://forum.kirupa.com/t/help-with-mp3-player-go-to-the-next-song/179487/1 "2006-02-20T17:22:36Z")

</div>

Hey gang.

I have this little radio I’ve made for a singers’ site. It auto starts when the page is loaded, but just the first song. The artist wants the radio to go through the entire array of songs like a CD when the user is at the site. However, the radio also has a comboBox, so that users can select what song they want to hear and play it. That part all works fine EXCEPT making the autoplay part go to the next song after the first ends. This is the very simple AS I put on the movie to make the first song play when the movie loads. So how do I get it to go to the next item in the comboBox and then the next and then the next?

Any help would be greatly appreciated.

Thanks in advance!  
.pete.

```auto
  stopAllSounds();  
 var song = new Sound(); 
 song.loadSound(cbSongselect.selectedItem.data, true); 
 nowplaying.text = cbSongselect.selectedItem.label; 
 song.onSoundComplete = function() {
   stopAllSounds();
   nowplaying.text = defaulttext;
}

```
