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 -
Code:
for each(var prop:XML in myXML.SONG){
item = new Object();
item.label = prop.@ARTIST;
item.data = prop.@id;
playList.addItem(item);
}
}
and this is what my xml file looks like
PHP Code:
<?xml version="1.0" encoding="utf-8"?>
<PLAYLIST>
<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"/>
</PLAYLIST
Can anyone help?