Problem: createEmptyMovieClip() with loadClip()

I’m making a simple photo gallery, and I’m having trouble loading the thumbnail images. I use the same method (loadClip()) to load the fully sized pictures, and there’s no problem there. Even with the thumbnails, I could get the images to load properly when I hard coded each individual thumbnail. The problem is when I try to createEmptyMovieClip() and then loadClip() into these movieclips dynamically, if you will, so it can adjust itself to the number of images in the gallery. I get nothing. No images. Nothing shows up. If someone could tell me what I’m doing wrong, I’d be really thankful. This is my first time using the createEmptyMovieClip and loadClip methods, and I can’t figure this one out. Thanks a bunch for any help.

Basically, the code is just creating a new movieclip (mc_thumbnails) to contain all the thumbnails. Then, it should create a new movieclip (inside mc_thumbnails) for each image available. Inside each of these clips (mc_thumbnail1, mc_thumbnail2, etc), the appropriate image should be loaded…

thumbnailMCLoader = new MovieClipLoader();
thumbnailPreloadObj = new Object();
thumbnailMCLoader.addListener(thumbnailPreloadObj);

function loadThumbnails(){
    var mc_thumbnails:MovieClip = _root.createEmptyMovieClip("mc_thumbnails", getNextHighestDepth());
    mc_thumbnails._x = 0;
    mc_thumbnails._y = 0;

    for (i:Number = 0; i <= picArray.length - 1; i++){
        _root.mc_thumbnails.createEmptyMovieClip("mc_thumbnail" + i, getNextHighestDepth());
        thumbnailMCLoader.loadClip(pathToThumbnails + picArray*, "mc_thumbnail" + i);
    }
    
    arrangeThumbnails();
}