View Full Version : [AS3] XML Playlist

02-03-2009, 04:37 PM
I have an MP3 playlist made using a list component and an XML file. The problem i am having is that i want the artist and title to be shown in each section of the list. At the moment i can only get the artist to appear. This is the code i used to popuate my list component -

for each(var prop:XML in myXML.SONG){
item = new Object();
item.label = prop.@ARTIST;
item.data = prop.@id;

and this is what my xml file looks like

<?xml version="1.0" encoding="utf-8"?>
<SONG URL="audio/Excursions.mp3" TITLE="Excursions" ARTIST="A Tribe Called Quest" />
<SONG URL="audio/Buggin' Out.mp3" TITLE="Buggin' Out" ARTIST="A Tribe Called Quest"/>

Can anyone help?