# Load an image and control it

**URL:** https://forum.kirupa.com/t/load-an-image-and-control-it/305567
**Category:** Uncategorized
**Created:** [February 27, 2010, 1:51pm UTC](https://forum.kirupa.com/t/load-an-image-and-control-it/305567 "2010-02-27T13:51:00Z")
**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:51pm UTC](https://forum.kirupa.com/t/load-an-image-and-control-it/305567/1 "2010-02-27T13:51:00Z")

</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  
Code:  
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
