# Help with Loading and Playing Sounds

**URL:** https://forum.kirupa.com/t/help-with-loading-and-playing-sounds/212598
**Category:** Uncategorized
**Created:** [January 12, 2007, 12:23pm UTC](https://forum.kirupa.com/t/help-with-loading-and-playing-sounds/212598 "2007-01-12T12:23:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ezence](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@Ezence](https://forum.kirupa.com/u/Ezence)
#### Post date: [January 12, 2007, 12:23pm UTC](https://forum.kirupa.com/t/help-with-loading-and-playing-sounds/212598/1 "2007-01-12T12:23:15Z")

</div>

Hi there,

I’ve used the guides on the website to make an entire website in flash, although I’ve run into a problem.

I have music playing in the background and the client has asked for the music to repeat rather then playing once.

```auto
 
  //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_music01',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
  _global.Behaviors.Sound.music01 = new Sound(this._parent.BS_music01);
 } else {
  this.createEmptyMovieClip('_music01_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
  _global.Behaviors.Sound.music01 = new Sound(this.BS_music01);
 }
 _global.Behaviors.Sound.music01.loadSound("music01.mp3",true);
 _global.Behaviors.Sound.music01.setVolume(6);
 // Play Sound Behavior
 _global.Behaviors.Sound.music01.start(0,99);
 // End Play Sound Behavior

```

The problem is that the start() operator will not use the variables specified therefor will not loop the music. Is this because I am streaming? - Or because of my syntax?

Thanks!
