# Need some help on visualising items of array

**URL:** <https://forum.kirupa.com/t/need-some-help-on-visualising-items-of-array/312047>\
**Category:** Uncategorized\
**Created:** [July 23, 2010, 3:27pm UTC](https://forum.kirupa.com/t/need-some-help-on-visualising-items-of-array/312047 "2010-07-23T15:27:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![startech](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@startech](https://forum.kirupa.com/u/startech)\
**Post date:** [July 23, 2010, 3:27pm UTC](https://forum.kirupa.com/t/need-some-help-on-visualising-items-of-array/312047/1 "2010-07-23T15:27:58Z")

</div>

hi all!  
I’m pretty new to AS3.0 but i want to make some kind of gallery, to put in a banner…

This is my code:

```auto
import flash.net.*;

var path:String="fotos.xml";
var xmlImages:XML;
var imagesArr:Array=new Array();
var imagesClip:MovieClip=new MovieClip;
var imageTracker:int=0;

loadImages();

function loadImages() {
    trace("App started");

    var req:URLRequest=new URLRequest(path);
    var ldr:URLLoader=new URLLoader(req);
    ldr.addEventListener(Event.COMPLETE,loaderCompleteHandler);
    ldr.load(req);
}

function loaderCompleteHandler(event:Event):void {
    xmlImages=new XML(event.currentTarget.data);
    for each (var img:XML in xmlImages.pic) {
        imagesArr.push(img);
        trace(img);
    }
    trace(imagesArr);
    visualiseImages();
}

function visualiseImages():void{
    for (var i:uint; i < imagesArr.length; i++) {
        trace("image "+i);
        imagesClip.addChild( imagesArr* );
    }
}

```

I think the only thing i need to do is to add the items of my array to the stage, but i have no clue how to do it, and i dind’t find any good help online ☹  
If somebody could help my i would be very very grateful! i’ve been on this problem for a long long time :’(
