Hi there,
I applied folowing script to load my mp3 file. Problem is my mp3 won’t loop:s. Anyone see the prob in my script? i’d also like the mp3 to fade in
and when I push the stop button it fades out. hope someone can help out.
Big thx in advance.
loopSound = function () {
myMp3.loadSound(“streamsound.mp3”, true);
myMp3.setVolume(50);
myMp3.start(0,999);
};
myMp3 = new Sound();
myMp3.loadSound(“streamsound.mp3”, true);
myMp3.setVolume(50);
myMp3.start(0,999);
myMp3.onsoundComplete = loopSound;
buttonstop.onRelease=function(){
myMp3.stop();
}
buttonplay.onRelease=function(){
myMp3 = new Sound();
myMp3.loadSound(“streamsound.mp3”, true);
myMp3.setVolume(50);
myMp3.onsoundComplete = loopSound;
}