Hey
I got a slight problem.
I’m using the “load streaming mp3 file” behavior, as seen below.
on (release) {
//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_tune1',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.tune1 = new Sound(this._parent.BS_tune1);
} else {
this.createEmptyMovieClip('_tune1_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.tune1 = new Sound(this.BS_tune1);
}
_global.Behaviors.Sound.tune1.loadSound("06 Oh My Girl.mp3",true);
_parent.mp3Loader.gotoAndStop("on");
}
I need to add a loader of some form to it tho.
My plan is to have an MC with 2 frames. One with the word “Loading” in it and the other blank. The idea being, if the track is still loading it goes to the loading frame, otherwise to the blank frame
I’ve already added
_parent.mp3Loader.gotoAndStop("on");
to the above, to make the loader active.
I was thinking of having something like the following, to turn the loader off.
if(tune1.loaded) {
_root.mp3Loader.gotoAndStop("off");
trace("song loaded");
}
but that doesn’t work…
Any idea how I can do this? Thanks