add library images to array before loading - can you create LIB objects in arrays?
Hi - is it possible to add images from the library of Animate into an array first before loading them? I wanted to use the array indexing number to dynamically add any images that are linked with a naming/number convention in the library linkage. For example, all of the images I want to add to the stage would be linked in a particular order like: "myimage1", "myimage2", "myimage3", "myimage4" and so on. Can you create a library object in an array index? The error says the objects are undefined. Thanks in advance!
//CODE:
var imgNum= new Array();
var nextlibraryimage;
function addLibraryImages(){
var j;
for (j = 1; j < 4; j++) {
nextlibraryimage = String("lib.mylibraryimage"+j+"()");
imgNum
stage.addChild(imgNum
}
