Hi there, I'm streaming an mp3 that plays while my movie plays. I did this through an empty movie clip with an instance name soundLoader. Then on an actions layer I put the following:
holidayTune = new Sound(soundLoader);
holidayTune.loadSound("Jacks_Stomp.mp3",true);
This works great, but I need it to loop. It's ending before my movie does and since the length of the movie really depends on the user's participation and how long they take to make selections (it's an interactive piece), I need it to keep playing.
Thanks!
Jackie
you can use the onSoundComplete handler to do this , like this:
holidayTune = new Sound(soundLoader);
holidayTune.onSoundComplete = function() {
holidayTune.start();
}
holidayTune.loadSound("Jacks_Stomp.mp3",true);
Perfect. Thank you! That worked.