# mp3 playlist, from .xml

**URL:** <https://forum.kirupa.com/t/mp3-playlist-from-xml/50910>\
**Category:** flash\
**Created:** [May 7, 2004, 4:16pm UTC](https://forum.kirupa.com/t/mp3-playlist-from-xml/50910 "2004-05-07T16:16:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smsanderz](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@smsanderz](https://forum.kirupa.com/u/smsanderz)\
**Post date:** [May 7, 2004, 4:16pm UTC](https://forum.kirupa.com/t/mp3-playlist-from-xml/50910/1 "2004-05-07T16:16:15Z")

</div>

I’ve recently purchased this basic mp3-xml player - [http://flashdevmart.b7ven.com/produ…ail.php?pid=004](http://flashdevmart.b7ven.com/produ...ail.php?pid=004)

I am trying to customize it a bit and add a feature.  
I want to create a playlist that shows all songs in the .xml file in addition to the already visible, Album, Song Name and Song #.

– Here’s some of the .as that Displays the Song Details:  
displayTrack = function () { track\_title.text = rootNode.childNodes[track\_num].attributes.tTitle; track\_album.text = rootNode.childNodes[track\_num].attributes.tAlbum; track\_pos.text = (track\_num+1)+" of "+totalNodes;};

– Here’s how songs are loaded.  
audio.loadSound(mp3Path+rootNode.childNodes[track\_num].attributes.tFile, true);

– Here’s the .xml for the songs:  
\<tracks\>  
\<track id=“1” tFile=“VMD9397R/VMD9397R-S-96kbps-01.mp3” tTitle=“INVITACION FOUNTAIN” tArtist="" tAlbum=“If You Say Go” /\>  
\<track id=“2” tFile=“VMD9397R/VMD9397R-S-96kbps-02.mp3” tTitle=“CREATION” tArtist="" tAlbum=“If You Say Go” /\>  
\</tracks\>

Q: Can anybody give me advice as to what I need to do to make a visible playlist that loads the song, once I click on it based on the .as and .xml above?

Thnx,
