# Plz help me loop / repeat a streaming mp3

**URL:** https://forum.kirupa.com/t/plz-help-me-loop-repeat-a-streaming-mp3/203349
**Category:** flash
**Created:** [October 10, 2006, 12:25pm UTC](https://forum.kirupa.com/t/plz-help-me-loop-repeat-a-streaming-mp3/203349 "2006-10-10T12:25:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Beeej21](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@Beeej21](https://forum.kirupa.com/u/Beeej21)
#### Post date: [October 10, 2006, 12:25pm UTC](https://forum.kirupa.com/t/plz-help-me-loop-repeat-a-streaming-mp3/203349/1 "2006-10-10T12:25:10Z")

</div>

Hello all,  
I’m so exhausted from trying to figure this out on my own. I am wanting to loop an external mp3 file that is streaming in flash file. I added the load streaming properties to a key frame on my timeline using the Windows/Behaviors/Sound/Load streaming mp3 file. The sound loads and plays just fine. However, I’d like to repeat it. Does anyone know what I need to add to the actionscript code in the keyframe in order to make it repeat?

Here’s what the code looks like now:

//Load Streaming mp3 behavior  
if(\_global.Behaviors == null)\_global.Behaviors = {};  
if(\_global.Behaviors.Sound == null)\_global.Behaviors.Sound = {};  
if(typeof this.createEmptyMovieClip == ‘undefined’){  
this.\_parent.createEmptyMovieClip(‘BS\_myMusic’,new Date().getTime()-(Math.floor((new Date().getTime()) /10000)\*10000) );  
\_global.Behaviors.Sound.myMusic = new Sound(this.\_parent.BS\_myMusic);  
} else {  
this.createEmptyMovieClip(‘_myMusic_’,new Date().getTime()-(Math.floor((new Date().getTime()) /10000)\*10000) );  
\_global.Behaviors.Sound.myMusic = new Sound(this.BS\_myMusic);  
}  
\_global.Behaviors.Sound.myMusic.loadSound("\<A href=“[http://www.abrohn.com/bombsquad/images/sample.mp3",true"](http://www.abrohn.com/bombsquad/images/sample.mp3%22,true%22)\>sample.mp3”,true);

Thank you for any and all help I can get.
