Photo Gallery and Loader();

Hello,

I want to create some photo gallery, but don’t know how in AS 3.0.
Ok, if I want to load only one image I would do this:


        still = new Loader();
        still.contentLoaderInfo.addEventListener(Event.COMPLETE, loadGallery);
        var url2:String = url+"_s"+ 1 + ".jpg";        
        var urlReq:URLRequest = new URLRequest(url2);
        still.load(urlReq);
        still.alpha = 0;
        if (!contains(still)) addChild(still);

Now, that I want to load all images I am doing something like that:


    for(var i=1; i<=amount; i++){
        still = new Loader();        
        still.contentLoaderInfo.addEventListener(Event.COMPLETE, loadGallery);
        var url2:String = url+"_s"+ i + ".jpg";        
        var urlReq:URLRequest = new URLRequest(url2);
        still.load(urlReq);
        still.alpha = 0;
        still.y = i*10;
        addChild(still);
    }

So, now it seems to me that only the last pic appears when running, cause I am adding loader instead of loader.content.

Any Help???

Also, What I want to achieve is load first image and show directly, while the rest of them are loading in background.

Right now, with this for loop I have to wait for all the pictures to get loaded and then show them.

thanks very much in advance for any suggestions about the logic of Gallery in AS 3.0.