Questo è l'istruzione che viene associata a un pulsante x la riproduzione di un file in streaming utilizzando "carica mp3 in streaming" dal menu comportamenti in flash.
Dove sound.mp3 è il file e sound è l'istanza assegnata.
avendo visto che la cosa non funziona con un file .rm cosa bisogna fare x poter caricare il file real?
HELP!!!!!![]()
ciao
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_suond',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.suond = new Sound(this._parent.BS_suond);
} else {
this.createEmptyMovieClip('_suond_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.suond = new Sound(this.BS_suond);
}
_global.Behaviors.Sound.suond.loadSound("sound.mp3 ",true);
}
-------------------
P.s. ho provato anche a utilizzare il comando getURL ma nn funge...
//Goto Webpage Behavior
getURL("http://www.macromedia.com","_self");
//End Behavior
}

Rispondi quotando