I'm low level as3 programmer and I need help whit this code:
I have gallery XML file:
<gallery>
<item>
<id>1</id>
<strana>0</strana>
<naslov>Lokacije</naslov>
<aktuelno>1</aktuelno>
<slika>1.jpg</slika>
</item>
<item>
<id>2</id>
<strana>2</strana>
<naslov>Coaching</naslov>
<aktuelno>1</aktuelno>
<slika>2.jpg</slika>
</item>
<item>
<id>3</id>
<strana>0</strana>
<naslov><![CDATA[O.Å . Bratstvo - panel]]></naslov>
<aktuelno>0</aktuelno>
<slika>3.jpg</slika>
</item>
</gallery>
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.