ID3 tag data in AIR project question
Hi
Couple of questions if you are able to help.
1. Is it possible to read ID3 data from a file object, or do you have to create a Sound, and send the file object's nativePath data to the Sound?
eg
public var snd:Sound = new Sound();
public function Sound_id3Example(file:Object) {
snd.addEventListener(Event.ID3, id3Handler);
snd.load(new URLRequest(file.nativePath));
}
2. If it HAS to be via a Sound, and I'm using a recursive function/loop to load files/file data from a directory (and am also trying to read id3 data during that loop), how do you make a recursive function wait until the ID3 event listener has fired before moving on to the next file?
Thanks for taking a look.