Groups | Blog | Home
all groups > flash actionscript > february 2005 >

flash actionscript : loop dynamically loaded streaming mp3



zcan
2/20/2005 9:11:07 PM
Im trying to loop a dynamically loaded streaming mp3 file but having no
luck.
I've tried using this script


onClipEvent (load) {
BG_loop = new Sound();
BG_loop.loadSound("audio/rave.mp3", true);
BG_loop.onSoundComplete = function() {
BG_loop.loadSound("audio/rave.mp3", true);
};
}



but no luck.
Any help is appreciated.
Thanks!!

tralfaz
2/21/2005 5:25:43 PM
[quoted text, click to view]

Works fine for me. Make sure the names are correct.. even the capitol
letters. Like .. make sure it's audio/rave.mp3 and not
Audio/rave.mp3 etc. Is it playing once and not looping, or not
playing even once? Make sure the mp3 file is valid sample rate for
Flash.. 11khz, 22khz or 44 khz

Also, check that the event is triggering..
onClipEvent (load) {
trace("yes, this code is being called");
BG_loop = new Sound();
BG_loop.loadSound("audio/rave.mp3", true);
BG_loop.onSoundComplete = function() {
BG_loop.loadSound("audio/rave.mp3", true);
};
}

tralfaz

AddThis Social Bookmark Button