XML photogallery. Loading two jpgs on one click?

Hi All,

I’ve successfull managed to complete the thumbnail gallery tutorial on kirupa.com (which is fantastic). Now I want it so when I click on the thumbnail 2 jpgs load in different locations (i.e into 2 different MC’s). I’ve tried making two movie clips with different instance names and adding all the extra lines in the AS, which I can do with as many text boxes as possible with success (see below)

-This all works okay:

[COLOR=Orange]function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
photographer = [];
agency = [];
client = [];
thumbnails = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
photographer* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
agency* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
client* = xmlNode.childNodes*.childNodes[3].firstChild.nodeValue;
thumbnails* = xmlNode.childNodes*.childNodes[4].firstChild.nodeValue;
thumbnails_fn(i);

etc…

function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
photo_txt.text = photographer[p];
agency_txt.text = agency[p];
client_txt.text = client[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p–;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
photo_txt.text = photographer[p];
agency_txt.text = agency[p];
client_txt.text = client[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
photo_txt.text = photographer[0];
agency_txt.text = agency[0];
client_txt.text = client[0];
picture_num();
}
}

etc…
[/COLOR]

///////////////////////////////////////

Along with my xml:

<pic>
<image>swf/puma_hoody.swf</image>
<caption>Richard Foster</caption>
<caption>GBH</caption>
<caption>Puma</caption>
<thumbnail>thumbs/2s.jpg</thumbnail>

But don’t seem to be able to add an extra picture in like I can with the text.

Any help or ideas.

Paul.

If the above doesn’t make any sense, then I try and explain further…