5 Replies Latest reply on May 22, 2009 2:57 PM by kglad

    MP3 Player

    evbarkley9

      I am a begginer and have had a bit of help on this stuff but im am stuck.

       

      in brief, i have a class that loads xml, creates a list holder that dislplays the "items". I then have a listItem class that says when an item is clicked to dispatch a custom event.

       

      I would like that function to parse the XML file for the file path of a mp3 file. I would like to know how I can trace out that path in the xml file I am looking for and then how I can use that to get it to play in the sound channel.

       

      Any help would be appreciated.

       

      example of how my xml is set up:

       

      <list>
          <group name="English">
              <item name="Sound Byte Title" description="Text" file="soundBytes/sound1" />
              <item name="Sound Byte Title" description="Text" file="soundBytes/sound2" />
              <item name="Sound Byte Title" description="Text" file="soundBytes/sound3" />
          </group>
          <group name="German">
              <item name="Sound Byte Title" description="Text" file="soundBytes/sound4" />
              <item name="Sound Byte Title" description="Text" file="soundBytes/sound5" />
              <item name="Sound Byte Title" description="Text" file="soundBytes/sound6" />
          </group>

       

      </list>

       

       

      Thanks

      E