actionscript read id3 tag help

Discussion in 'Mac Programming' started by homerjward, Feb 1, 2006.

  1. homerjward macrumors 68030


    May 11, 2004
    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
    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.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:

Share This Page