My Flash Code
var myLoader:URLLoader = new URLLoader;
var xmlData = new XML();
myLoader.addEventListener(Event.COMPLETE, LoadXML);
myLoader.load(new URLRequest("mydata.xml"));
function LoadXML(e:Event):void
{
xmlData = new XML(e.target.data);
trace(xmlData);
}
My XML Data (mydata.xml)
<xml>
<items>
<item Name="Test" ID="1" />
<item Name="Home" ID="2" />
<item Name="Car" ID="3" />
<item Name="Balloon" ID="4" />
<item Name="Harry" ID="5" />
<item Name="Lion" ID="6" />
</items>
</xml>
How can I get each item in the xml file to be able to then use it in my flash file.
I have tried several things but none seem to work. I am using ActionScript 3.0.