Posted by TodayRatha in
on
-
AS3
===
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);
xmlLoader.load(new URLRequest("playlistAS3.xml"));
funciton
========
function showXML(e:Event):void {
XML.ignoreWhitespace = true;
var songs:XML = new XML(e.target.data);
trace(songs.track.length());
var i:Number;
for (i=0; i < songs.track.length(); i++) {
trace(" Name of the song: "+ songs.track[i].title.text());
trace(" Name of the Band: "+ songs.track[i].band.text());
trace(" File Location of the song: "+ songs.track[i].file.text());
}
}
Category List
- Actionscript 3 (2)
- Digital Painting (1)
- Life style (1)
- Photoshop (1)
- Sencha Touch (1)
Blog Archive
-
▼
2010
(50)
-
▼
January
(8)
- AS3 Flash | Give result to XML variable
- AS3 Flash | Load External XML with urlLoader
- AS3 Flash | Load External XML with urlLoader
- AS3 Flash | Dispatchevent
- AS3 Flash | Automatically Action using Timer Class
- AS3 Flash | Coding Object have shadow effect
- AS3 | Array
- AS3 Flash | Dynamic Textfield autoSize
-
▼
January
(8)