Showing array with images

Hi everyone,

I have the following code:


private function thumbs_mc(){
   var request:URLRequest;
   var loader:Loader = new Loader();
   for(var i=0; i<imagens.lenght;i++){
    new URLRequest(imagens*);
    loader.load(request);
    contentor.addChild(loader);
   }   
   var imagens:Array = ["imagens/galerias/alp6_thumb.jpg", "imagens/galerias/c1_thumb.jpg"];
  }

What I want to do is to show inside of “contentor” the images from the array. I don’t know if this is the right method to do it, anyway, it gives me an error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.