# Load an image and control it

**URL:** https://forum.kirupa.com/t/load-an-image-and-control-it/305566
**Category:** Uncategorized
**Created:** [February 27, 2010, 1:45pm UTC](https://forum.kirupa.com/t/load-an-image-and-control-it/305566 "2010-02-27T13:45:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![antoine\_magdi](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@antoine\_magdi](https://forum.kirupa.com/u/antoine_magdi)
#### Post date: [February 27, 2010, 1:45pm UTC](https://forum.kirupa.com/t/load-an-image-and-control-it/305566/1 "2010-02-27T13:45:03Z")

</div>

sorry but i’m newbie in as3, i’m working on application to make a puzzle.  
i want to load an image and give it an instance name to control it, i tried the following code

```auto
for (var i:int = 1; i < 4; i++) {
 var myLoader:Loader = new Loader();
 var fileRequest:URLRequest = new URLRequest("myImage_0" + i + ".gif");
 myLoader.load(fileRequest);
 addChild(myLoader);
 myLoader.name = "myImage_0" + i;
 myImage_01.x=100
}

```

the following erroe occured:  
1120: Access of undefined property myImage\_01.  
anyone can help;  
thnx in advance
