I tried doing the whole id3 tag thing the way you guys are talking
about and the problem I was having was that some information I wanted
available without having to load the song which you need to do to get
the id3 tag data.
What I've done differently is obtain the id3 tag data using an aspx
page that returns all the data as an xml file. I point flash at this
aspx page and it parses the xml to get all the information I want
without having to load each song individually.
the current iteration of this project is at:
www.iamnotadeadman.com/audio if you care. the track titles are generated off the id3 songname, not
the file name.
[quoted text, click to view] jonnybennett wrote:
> Unless anyone can think of a better way...
>
> passOne=1;
> mySound.onID3 = function():Void {
> if (passOne==1){
> tester.text += "Artist:" + mySound.id3.artist + "\n";
> tester.text += "Title:" + mySound.id3.songname + "\n";}
> delete passOne;}
Perhaps you're wife is god?
The search for god was probably not what macromedia or adobe had in mind for
these forums, so I will stop, I have a slight further problem and that is that
the Id3 tags are being called twice, at the begining and end of the song.
mySound.onID3 = function():Void {
tester.text += "Artist:" + mySound.id3.artist + "\n";
tester.text += "Title:" + mySound.id3.songname + "\n";
// i need to delete the functon here so that it doesn't get called twice.
}
onID3 is being called twice, as my output for tester.text is being repeated. I
think this is becuase 'if you have ID3 V2 and ID3 V1, on will be called twice.
ID3 V2 is at the start of the song. So the first onID3 will be ID3 V2. ID3 V1
is at the end of the song.'
Therefore how could I stop this onID3 function after the ID3V2 tags at the
start are called.
I can't delete mySound, as that also holds the sound? is it possible to delete
the function only... delete mySound.onID3() ?