Creating new Bitmapdata

What i am trying to do is to create new bitmap objects from externally loaded png’s in AS2, the way i am trying to do it is to first create empty MC’s loading the png’s into them, then copy these MC’s into new Bitmapdata objects but it isn’t working.


var images = ["img1.png","img2.png"]
var imagesBMP:Array = new Array();
var home = this;

//load Images listed in images array into new MC's
function loadImages(){
    for(i=0;i<images.length;i++){
        var t = home.createEmptyMovieClip("holder"+i, i);
        loadMovie("images/"+images*, "holder"+i);
    }
}
    
//create Bitmap copies of the MC's passed into function
function createBitmap(mc1){
    mcBMP = new BitmapData(mc1._width, mc1._height, true, 0x00000000);
    mcBMP.draw(mc1);
    imagesBMP.push(mcBMP)
}
    
loadImages();

//if the images have been loaded pass the new MC's containing the Images to createBitmap function
this.onEnterFrame = function(){
    if(home["holder0"]._width){
        for(i=0;i<images.length;i++){
            var t = home["holder"+i];
            createBitmap(t)
        }
        delete this.onEnterFrame;
    }
}

I would love some help if anyone knows whats wrong with this?

cheers