I have problem loading all items from XML with for each
- by vaha
Hi all,
I'm low level as3 programmer and I need help whit this code:
I have gallery XML file:
1
0
Lokacije
1
1.jpg
2
2
Coaching
1
2.jpg
3
0
0
3.jpg
And:
var loader: URLLoader = new URLLoader();
loader.load(new URLRequest("gallery.xml");
var xml = new XML(evt.target.data);
for each(var item in xml..item) {
centralniText.htmlText = item.slika;
}
only shows last item from XML file:
3.jpg
I want all. Please help.