I’ve been searching through the forums but haven’t found a solution yet.
I’m trying to modify the gallery to show several images at once, as well as loop. I’ve created a second instance of “picture” (picture2).
Here’s the code I’m using. It works, however when picture2 gets the the last image, it breaks. Any sugestions?:-/
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
picture2._alpha = 100;
picture2.loadMovie(image[p+1], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p–;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
picture2.loadMovie(image[p+1], 1);
desc_txt.text = description[p];
picture_num();
}
}