Hi,
I have a project that needs 4 levels of zoom, each with its own image loading in. So, to make things easier on myself, I made an array of the Loaders, so I can instantiate them and hide/display them when I need to. However, this doesn’t work as I had expected. I.e. (using just two level for simplicity):
private var photo:Loader;
private var photoLarge:Loader;
private var photoArray:Array = [photo, photoLarge];
trace(photoLoader[0] == photo) // true
photoLoader[0] = new Loader();
trace(photoLoader[0] == photo) // false
Now i guess this is because I am overwriting the array reference with a new Loader object. But even if I do:
var temp:Loader = photoLoader[0];
trace(temp == photo) // true
temp = new Loader();
trace(temp == photo) // false
Is there any way I can reference the loaders dynamically so I can load/show/hide them on the fly, instead of hard coding it for each level?
Thanks in advance!