Try the following code:
Code:
var music = new Sound();
music.onID3 = function () {
songname = music.id3.TIT2;
artist = music.id3.TPE1;
album = music.id3.TALB;
year = music.id3.TYER;
comment = music.id3.COMM;
track = music.id3.TRCK;
genre = music.id3.TCON;
};
music.loadSound("my.mp3",true);
...