Flash CS6; AS3: How to load image from a link on one frame and addChild(image) on other?
How can I addChild outside the frame of images loader function? When I try to addChild on the other frame of the same loader, I get an error.
I need to download all my 10 images only ONE TIME and place it on the screen in the other frames (to the same movie Clip).
Also I can only play this as3 coded frame once. I know how to add an array of images, but I only need to understand how to do it with one image.
Here is my loader for one image..
var shirt1 = String("https://static.topsport.lt/sites/all/themes/topsport2/files/images/marskineliai_png/215.png");
var img1Request:URLRequest = new URLRequest(shirt1);
var img1Loader:Loader = new Loader();
img1Loader.load(img1Request);
myMovieClip.removeChildAt(0);
myMovieClip.addChild(img1Loader);
