# loadSound prob

**URL:** <https://forum.kirupa.com/t/loadsound-prob/174645>\
**Category:** flash\
**Created:** [January 7, 2006, 6:23pm UTC](https://forum.kirupa.com/t/loadsound-prob/174645 "2006-01-07T18:23:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![modulater](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@modulater](https://forum.kirupa.com/u/modulater)\
**Post date:** [January 7, 2006, 6:23pm UTC](https://forum.kirupa.com/t/loadsound-prob/174645/1 "2006-01-07T18:23:20Z")

</div>

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;  
}
