Salve, su di una Timeline ad ogni fotogramma ho scritto le seguenti istruzioni per poter caricare un file MP3 dall'esterno....
Fin quì tutto bene ma ho il problema di non riuscire ad azzerare il campo di testo che mi scrive l'artista ed il titolo del brano e, ad ogni fotogramma successivo mi accoda ai precedenti i titoli e gli artisti del nuovo...
Mi potete aiutare per favore....????
this.createTextField("brano_txt",this.getNextHighe stDepth(),120,85,100,100);
brano_txt.multiline = true;
brano_txt.autoSize = "left";
this.createTextField("artista_txt",this.getNextHig hestDepth(),120,105,100,100);
artista_txt.multiline = true;
artista_txt.autoSize = "left";
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFFFFFF;
var song_sound:Sound = new Sound();
song_sound.onLoad = function() {
song_sound.start();
equalizzatore.gotoAndPlay(2);
};
song_sound.onSoundComplete = function() {
clearInterval(my_interval);
trace("Fine Brano");
equalizzatore.gotoAndStop(1);
artista_txt.text += "";
};
song_sound.onID3 = function():Void {
artista_txt.text += "Artist:\t" + song_sound.id3.artist + "\n";
artista_txt.setTextFormat(my_fmt);
brano_txt.text += "Song:\t" + song_sound.id3.songname;
brano_txt.setTextFormat(my_fmt);
};
song_sound.loadSound("nomefile.mp3");
stop();
Spero di essere stato chiaro....


Rispondi quotando