;

PDA

Click to See Complete Forum and Search --> : external mp3 looping


telemetrik
07-30-2006, 11:59 PM
hello all!

need some help on 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();

telemetrik
07-31-2006, 12:18 AM
got it to work thanks