Preloader help

Hi, i’m making a gallery using MovieClipLoader&loadClip. I follwed a tutorial and everything works fine, although the preloader is just plain text. I want a graphic preloader instead, so I imported in the library a gif, turned into a movieClip, and linked it for actionscript, but I can’t find a way to attach it to the thumbnails.

this is my thumnails function:

function callThumbs() {
    _root.createEmptyMovieClip("container_mc",_root.getNextHighestDepth());
    container_mc._x = _root.gallery_x;
    container_mc._y = _root.gallery_y;

    var clipLoader = new MovieClipLoader();
    var preloader = new Object();
    clipLoader.addListener(preloader);

    for (i=0; i<_root.myImagesTotal; i++) {
        thumbURL = myImages*.attributes.thmb;
        myThumb_mc = container_mc.createEmptyMovieClip(i, container_mc.getNextHighestDepth());
        myThumb_mc._y = 20+Math.floor(i/columns)*spacey;
        myThumb_mc._x = 200+(i%columns)*spacex;
        clipLoader.loadClip(thumbURL,myThumb_mc);
        //LOADER
        preloader.onLoadStart = function(target) {
            
            
            
            target.createTextField("my_txt",target.getNextHighestDepth,0,0,100,20);
            target.my_txt.selectable = false;


        };
        preloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
        
        
            target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);

        };
        //
        preloader.onLoadComplete = function(target) {
            new Tween(target, "_alpha", Strong.easeOut, 0, 100, 1, true);
            new Tween(target, "_xscale", Strong.easeOut, 0, 100, 1, true);
            new Tween(target, "_yscale", Strong.easeOut, 0, 100, 1, true);
            target.my_txt.removeTextField();
            target.onRelease = function() {
                callFullImage(this._name);
            };
            target.onRollOver = function() {
                new Tween(target, "_alpha", Strong.easeOut, 100, 20, 0.5, true);

            };
            target.onRollOut = function() {
                new Tween(target, "_alpha", Strong.easeOut, 20, 100, 0.5, true);

            };
            target.onReleaseOutside = function() {
                new Tween(target, "_alpha", Strong.easeOut, 20, 100, 0.5, true);

            };
        };
    }


}

I’ve tried creating an empty movieClip and using attachMovie inside onLoadStart & Progress, but nothing shows up :alien2:

here’s a link so you can see exactly how the actual preloader is
http://lukino99.altervista.org/prova/provaLoader.html

so basically instead of the percentages as text for each thumbnail I would like to place in a MovieClip with my own loading animation.
Glad if someone could help :slight_smile:

thanks a lot!