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.
//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!