hello all!
need some help figuring out how to make my external streaming mp3 file loop. I tried a few things but i’m having no luck. here is my code where everything works fine now minus the code for looping.
thanks for looking.
houston
playList = [“url”];
currentSong = 0;
maxSongs = playList.length -1;
function startStreaming(){
mp3 = new Sound();
mp3.loadSound(playList[currentSong], true);
mp3.onSoundComplete = function(){
currentSong ++;
if (currentSong > maxSongs){
currentSong = 0;}
delete mp3;
}
}
startStreaming();
stop();
stop();