-
Help! AS3 Populate xml music player playlist
Im very new to action script Im trying to populate a xml playlist displaying artist name and song name. I'm able display one but not both together. here's the code.
private function xml_loader_COMPLETE_LOADING(e:Event)
{
this._xmlmp3 = new XML( e.target.data );
trace( this._xmlmp3 );
trace( this._xmlmp3.song[0].@url );
for(var iitemxml=0;iitemxml<this._xmlmp3.song.length();iit emxml++)
{
trace( this._xmlmp3.song[iitemxml].@songName);
myList.addItem(
{
data:this._xmlmp3.song[iitemxml],
label:this._xmlmp3.song[iitemxml].@artist
//when i change this to @songName it displays song Title
});
}
Thanks if anybody can help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|