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
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