Here, I’ve created multidimentional array which has multiple categories that caries multiple images. And I’m trying to make it so that you can paginate through categories and once you click on a category you can also paginate through images. You guys have any idea how I would do this? Should I use slice function to do this? What is the most effiecient and easiest way to do this?
/////////////////////////////////////////////////////////////////////////////////////
for(var i=0; i<catTotal; i++) { //looping through categories
myGallery* = new Array();
myGallery*[“name”] = gallery.category*.attributes.name;
myGallery*[“image”] = new Array();
//trace(myGallery*[“name”]);
var imageCount = gallery.category*.image.length;
for(var k=0; k<imageCount; k++) { //looping through images
myGallery*[“image”][k] = new Array();
myGallery*[“image”][k][“date”] = gallery.category*.image[k].date.getValue();
myGallery*[“image”][k][“title”] = gallery.category*.image[k].title.getValue();
myGallery*[“image”][k][“desc”] = gallery.category*.image[k].desc.getValue();
myGallery*[“image”][k][“thumb”] = gallery.category*.image[k].thumb.getValue();
myGallery*[“image”][k][“img”] = gallery.category*.image[k].img.getValue();
//trace(myGallery*[“image”][k][“date”]);
}
}