How to loop through BitmapData objects?

I dont know how i can loop through array of BitmapData objects.


//I m using something like this

var arrayOfBitmapObjects:Array=new array();
arrayOfBitmapObjects.push(new BitmapData(200,200, false));

//And then I m trying to paint the Bitmap objects

for(i=1;i<5;i++)
{
arrayOfBitmapObjects.push(new BitmapData(200,200, false));

arrayOfBitmapObjects*.draw(thePicMovieClip, new Matrix(), null, null, new Rectangle(50,30*i,20,30));

_root.createEmptyMovieClip("render"+i,_root.getNextHighestDepth());
_root["render"+i].attachBitmap(_root[arrayOfBitmapObjects*],_root["render"+i].getNextHighestDepth());


}

Solved!
Moderators can lock this thread.