Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-03-2009, 04:37 PM   #1
Registered User
Join Date: Apr 2008
Posts: 12
Default [AS3] XML Playlist

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

PHP Code:
<?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?
grebs is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XML Video Playlist kaptivate ActionScript 2.0 5 05-20-2008 07:01 PM
XML Issues sunlis ActionScript 2.0 0 10-10-2007 01:10 PM
Optimization advice for an XML parsing class indivision ActionScript 2.0 1 02-26-2007 12:28 AM
Load image from XML - AND make playlist... help?? ReverendRock ActionScript 1.0 (and below) 2 12-08-2003 06:35 PM
XML node connection carlosL ActionScript 1.0 (and below) 0 07-18-2002 10:14 AM

All times are GMT. The time now is 11:36 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.