# Showing array with images

**URL:** <https://forum.kirupa.com/t/showing-array-with-images/239190>\
**Category:** flash\
**Created:** [September 19, 2007, 1:39pm UTC](https://forum.kirupa.com/t/showing-array-with-images/239190 "2007-09-19T13:39:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubenDoliveira](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rubendoliveira/32/3905_2.png) [@RubenDoliveira](https://forum.kirupa.com/u/RubenDoliveira)\
**Post date:** [September 19, 2007, 1:39pm UTC](https://forum.kirupa.com/t/showing-array-with-images/239190/1 "2007-09-19T13:39:25Z")

</div>

Hi everyone,

I have the following code:

```auto

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.
