I’ve created a photo gallery that dynamically loads images into a movieclip entitled ‘gallery’. Right now the images are listed in an array. is it possible to make an Array of Arrays so that I could load different Arrays for different image galleries? Is this somewhat how it would work? Lets say I were to switch to a section entitled ‘landscapes’ which we will pretend is the array “var a:Array = new Array();” for now.
var a:Array = new Array(
"a1.jpg",
"a2.jpg",
"a3.jpg",
);
var b:Array = new Array(
"b1.jpg",
"b2.jpg",
"b3.jpg",
);
var c:Array = new Array(
"c1.jpg",
"c2.jpg",
"c3.jpg",
);
var galleries:Array = new Array(
"a.jpg",
"b.jpg",
"c.jpg"
);
movieclip.addEventListener(MouseEvent.CLICK,showpic);
function showpic(event:MouseEvent) {
loader.load(new URLRequest(galleries[1]));