I am trying to do is add different galleries under the same xml file. I am able to achive that but for some reason if the previous gallery has more thumbnails than the next one it wont reload the thumbnails and it will keep the same old ones on there.
function updateImage () {
image = [];
description = [];
thumbnails = [];
total = xmlNode.childNodes.length;
for (i = 0; i < total; i++) {
image* = xmlNode.childNodes*.attributes.image;
thumbnails* = xmlNode.childNodes*.attributes.thumb;
description* = xmlNode.childNodes*.attributes.description;
thumbnails_fn (i);
}
firstImage ();
}
///////
next_party.onRelease = function () {
xmlNode = xmlNode.nextSibling;
if (i < (currentIndex - 1)) {
i++;
break;
} else {
updateImage (xmlNode);
currentIndex++;
xmlNode = currentIndex;
picture_num ();
}
};
next_party.onEnterFrame = function () {
if (xmlNode == null) {
next_party._visible = false;
} else {
next_party._visible = true;
}
};
//
prev_party.onRelease = function () {
xmlNode = xmlNode.previousSibling
if (i >(currentIndex - 1)) {
i--;
break;
} else {
updateImage (xmlNode);
currentIndex++;
xmlNode = currentIndex;
picture_num ();
}
};