Hi,
I’m working on a site where I’m basically using the XML photo gallery with thumbs. The structure is that there are several different galleries, and each one has a info box (with scrolling text) and a picture box (the large photo with captions). It is intended to be navigated with Previous and Next buttons so I figured it would be easier to make a duplicate MovieClip for each info and picture box and jump between them. I have gotten this to work but I have a couple of problems:
- If I click on a thumbnail, how do I pass the image value from the array so the proper picture loads in the picture box MovieClip? I thought maybe if I attach the MovieClip before removing the info box MovieClip might work, but it doesn’t. Here’s the code I’m using:
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
_root.attachMovie("pic1", "picbox1", 150, {_x: 259.4, _y: 73});
nextImage();
Where the function nextImage is:
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picbox1.picture._alpha = 0;
picbox1.picture.loadMovie(image[p], 1);
picbox1.desc_txt.text = description[p];
picture_num();
My other problem is when I try to jump between different sections the thumbnails from the first section don’t unload, the thumbnails from the second section just overlap them (actually only the first one appears).
The FLA is here (http://grandexplorer.co.nz/NZviewer.zip)…and if anyone has ideas on a better way to manage the structure than duplicate info boxes and picture boxes, I’m all ears! Thanks in advance.