Problem in loaders in loop

Hello…

I am badly stuck in this problem. I have three movieclips on a stage ( thumb1, thumb2, thumb3). I made a function of loading 3 images i.e.

private function putThumbImages() {
for (var k=0; k<3; k++) {
var thumbLoader:Loader = new Loader();
thumbLoader.load(new URLRequest(thumbFileNameArray[k]));
(“thumb”+(k+1)).addChild(thumbLoader);
}
}

where, thumbFileNameArray = { img1, img2, img3 } .

But that function is not working. the last line throwing an error. I just want to put the three images from thumbFileNameArray to the 3 movieclips ( thumb1, thumb2, thumb3 )

Any help would be greatly appreciated.

Nikhil…