[HLP] Odd Behavior when loading external file

Hi, folks,

i’m starting my A.S. 3.0 path… I wrote this lil code to load external imgs (or swf) for a “slideshow”…

what’s happening here is:
1st. Only the last img loads (or maybe they’re one in top of the other)
2nd. The image load offset from the Mc center (the holder is centered on the thumb)…

so, my question is:
How can i place all the images in the center of each movieclip generated by the loop? So they’re all shown and on the right spot.

here’s the code



var _xThumb:Number = 120;
var _yThumb:Number = 120;
var _thumb:Thumb;
var arrayReq:Array = ["01.jpg","02.jpg","03.jpg","04.jpg"]
var _thumbReq = new URLRequest();
var _thumbLoader:Loader = new Loader();
var conta:Number = 0;

        for (var i:Number = 0; i < 3; i++) {
            _thumb = new Thumb();
            _thumbReq = new URLRequest(arrayReq[conta]);
            _thumbLoader.load(_thumbReq);
            addChild(_thumb);
            _thumb.loader_mc.addChild(_thumbLoader);
            _thumb.x = _xThumb;
            _thumb.y = _yThumb;
            _xThumb += _thumb.width +20;
            trace(conta);
            conta ++;
        }


some explanation:
thumb is a “square” movieClip with some animation(i made into a class)and with a Mc inside called loader_mc (supposed to be the external file holder)… The reason is to have some animation on the over, out when hovered…

THANKS A MILLION for your patience,

cheers,

mr_n00

anyone?