# How to loop streaming sound/mp3

**URL:** https://forum.kirupa.com/t/how-to-loop-streaming-sound-mp3/287425
**Category:** Uncategorized
**Created:** [April 30, 2009, 8:45pm UTC](https://forum.kirupa.com/t/how-to-loop-streaming-sound-mp3/287425 "2009-04-30T20:45:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![julieb](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@julieb](https://forum.kirupa.com/u/julieb)
#### Post date: [April 30, 2009, 8:45pm UTC](https://forum.kirupa.com/t/how-to-loop-streaming-sound-mp3/287425/1 "2009-04-30T20:45:18Z")

</div>

Hi there… I have CS4 but saving doc as CS3 so I hope I am in the right forum.

I added a behavior as sound streaming mp3. I want to loop it… Here is the action code that was generated. How would I change it to looping. I changed the true to false at the end of the code but that didn’t work.

here it is:

```
//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_figaro',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
    _global.Behaviors.Sound.figaro = new Sound(this._parent.BS_figaro);
} else {
    this.createEmptyMovieClip('_figaro_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
    _global.Behaviors.Sound.figaro = new Sound(this.BS_figaro);
}
_global.Behaviors.Sound.figaro.loadSound("http://rmalikconstruction.com/music/Mozart - Marriage Of Figaro.mp3",true);

```

Thank you so much for your help.  
Julie:bu:
