Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

homerjward

macrumors 68030
Original poster
May 11, 2004
2,745
0
fig tree
i'm working on a project in flash for a class at school--basically it's an mp3 jukebox-type thing. i'm very new to actionscript, but i need to figure out a way to read the id3 song name tag from the currently playing song, and display it. i looked through "learning actionscript 2.0" and found how to get the id3 tag information from a variable thing but i have like 250 or so tracks on about 50 frames and would like to avoid having to make one for each song/frame.
here's the code i'm trying to use
Code:
this.createTextField("display_txt", this.getNextHighestDepth(), 0, 0,

  100, 100);

display_txt.autoSize = "left";

display_txt.multiline = true;

var song_sound:Sound = new Sound();

song_sound.onLoad = function() {

  song_sound.start();

};

song_sound.onID3 = function():Void {

  

  display_txt.text +=song_sound.id3.songname + "\n";

};
(mostly copied from "learning actionscript 2.0). how do i tell it to look for the tag in whatever mp3 is currently playing, rather than the one defined by song_sound?

sorry if this sounds really stupid...:eek:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.