Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Olá pessoal, fiz um tutorial de uma rádio MP3 aqui e neste tutorial o professor usa um evento pra chamar o nome das musicas em ID3 assim:
theSound.addEventListener(Event.ID3, metaDataComplete);
function metaDataComplete(metaEvent:Event):void
{
trackTitle.text = theSound.id3.songName;//id3.TIT2
albumTitle.text = theSound.id3.album;//id3.TALB
artist.text = theSound.id3.artist;//id3.TPE1
year.text = theSound.id3.year;//id3.TYER
if (theSound.id3.songName == null)
{
trackTitle.text = "unknown track";
}
if (theSound.id3.album == null)albumTitle.text = "unknown album";
}
if (theSound.id3.artist == null)artist.text = "unknown artist";
}
if (theSound.id3.year == null)year.text = "unknown year";
}
}
O código funciona normalmente, as músicas ele chama via txt
Quando jogo online ele parece que não pega o ID3 das musicas
Alguém sabe se as músicas precisam ter algum plugin ou algo do tipo online pra buscar os nomes??
Aguardo... Obrigado
Carregando comentários...