Onbekend |
|
een mp3 kan je laden binnen een swf met MX behaviors.
[I]Voor een knop:
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_snd1',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.snd1 = new Sound(this._parent.BS_snd1);
} else {
this.createEmptyMovieClip('_snd1_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.snd1 = new Sound(this.BS_snd1);
}
_global.Behaviors.Sound.snd1.loadSound("http://www.site.com/muziek.mp3",true);
}
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_snd1',new Date().getTime ()-(Math .floor((new Date().getTime ()) /10000)*10000) ); _global.Behaviors.Sound.snd1 = new Sound(this._parent.BS_snd1); } else { this .createEmptyMovieClip ('_snd1_',new Date().getTime ()-(Math .floor((new Date().getTime ()) /10000)*10000) ); _global.Behaviors.Sound.snd1 = new Sound(this.BS_snd1); } _global.Behaviors.Sound.snd1.loadSound("http://www.site.com/muziek.mp3",true); }
laatste lijntje code: URL,isStreaming |