Groups | Blog | Home
all groups > flash actionscript > march 2004 >

flash actionscript : Problems with getting ID3 properties



Junkm
3/21/2004 9:42:18 PM
I'm trying to make a jukebox right now, and I'd like to have a screen that has
the name of the song that's playing, the artist and the length, but for some
reason, I can't seem to get any of that stuff using the song.id3 property
Here's what my coding is for it:
_root.Songinfo.value = songplay.id3.artist
not only does artist not work, but I've tried all of the properties for both
ID3v1 and 2, and Ithe stuff is in the ID3 properties for my songs. The songs
are in my library, so they don't have to be loaded, just attached, and I make
sure to put it after the attach command.
Every single time I try it, the text box where it should appear just says
"undefined"
Can anyone tell me what I'm doing wrong here, and how to fix this? Thanks
Junkm
3/22/2004 4:21:24 AM
bump
Sopesco
3/28/2004 4:43:15 AM
Hi Junkm,
I have the same problem (I'm using FlashMX 2004 pro, don't you?) and I'm shure
this is a Player 7 bug because if you publish the swf and/or exe using "Player
6.0" publish settings, the same code works without problems, try this and wait
Macromedia resolves the bug.
Escuse my bad english
Equan
9/18/2005 12:00:00 AM
I had the same problem. My fix was to surround the tag with an onEnterFrame
statement.




onEnterFrame = function(){
info.text = songplay.id3.artist;
}
//where info.text is a dynamic text field named "info"
Equan
9/18/2005 12:00:00 AM
AddThis Social Bookmark Button