2 Replies Latest reply on Jul 7, 2008 11:59 PM by octagonatron

    Adobe ID3 Example BROKEN

    octagonatron
      So big surprise, i look on Adobe live docs for help on loading ID3 information from media files, find an example, paste it in flex and it doesn't compile, please help me!
      Here is the example on live docs, of course, as usual it doesn't work (I mean, hey why test this stuff before posting it right? RIGHT!)
      <code>
      import flash.events.Event;
      import flash.media.ID3Info;
      import flash.media.Sound;

      var s:Sound = new Sound();
      s.addEventListener(Event.ID3, onID3InfoReceived);
      s.load("mySound.mp3");

      function onID3InfoReceived(event:Event)
      {
      var id3:ID3Info = event.target.id3;

      trace("Received ID3 Info:");
      for (var propName:String in id3)
      {
      trace(propName + " = " + id3[propName]);
      }
      }
      </code>

      Perhaps im just dense (Hell, I know I'm dense) but can anyone tell me what about this example is broken so i can get it working?

      The example is here:
      http://livedocs.adobe.com/flex/3/html/help.html?content=Working_with_Sound_13.html

      If it works for you I think I'll eat my hands.

      Thanks in advance!