I have problem loading all items from XML with for each

Posted by vaha on Stack Overflow See other posts from Stack Overflow or by vaha
Published on 2011-02-20T15:21:40Z Indexed on 2011/02/20 15:25 UTC
Read the original article Hit count: 255

Filed under:
|
|
|
|

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.

© Stack Overflow or respective owner

Related posts about Xml

Related posts about actionscript-3