Xml gallery into multiple movieclips?

Hello,
lets suppose I have 50 thumbnails that I’m loading from an xml document. What I want to do is load them all at once but place them into different movie clips on the stage. I was thinking I could organize them based on tags in the xml file, or by number (like put thumbnails 1-12 in movieclip A, 13-20 in movieclip B, etc.)

Can anyone tell me how to do this? I’d love to see the code.

Right now I just have the thumbnails being placed in a single clip. I am confused because in the function where I addChild, I no longer have access to the thumb_url var, so I wouldn’t know how to specify which images to put where. Evenif I could access this info, I’m not sure how to write the code to place different thumbnails into different movieClips.

function callThumbs():void{
for (var i:Number = 0; i < my_total; i++){

var thumb_url = my_images*.@THUMB;;
var thumb_loader = new Loader();
thumb_loader.load(new URLRequest(thumb_url));
thumb_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);

thumb_loader.name = i;
}
}

function thumbLoaded(e:Event):void{
my_thumb = Loader(e.currentTarget.loader);
container_mc.addChild(my_thumb);
}

Thanks a lot