Kirupas PG + loading img @ random, only once per pg. w/ 3 imgs @ 1 time

Whats up, again!?

I’ve got Kirupas PG working pretty well so far with what I need done, thanks to this forum. Theres a few other features I’m playing with but having a hard time as I’m an actionscript newb, but learning.

As of right now, I have the image gallery loading automatically from picture to picture w/o the buttons. I also have the actual image linking to a page that I specify in the XML document.

What I would like to do, is have this one one movi file, have three instances of the photogallery “picture” mc in a vertical line:

Ex:

Picture1

Picture2

Picture3

I’d like the actionscript to display the 20-30 graphics I’ll be having in this gallery (for those of you have read my earlier posts, my guidlines were changed this morning) at random intervals (grabbing pics from random nodes), I’m going to be going over the “random” syntax in my book today trying to figure this out… but i’m on ch. 3, so i’m jumping ahead of myself here. Always liked a challenge anyways.

I’d also like the actionscript to be able to keep track of what images(nodes) it’s pulled from and to not display those on the same page unless all other images have been exhausted.

Thanks for all the help and reads on my questions!
This forum is by far one of the more helpful ones!

Thanks again,
Tim

Here’s my code so far:


delay = 5000; 
//----------------------- 
function loadXML(loaded) { 
if (loaded) { 
xmlNode = this.firstChild; 
image = []; 
description = []; 
total = xmlNode.childNodes.length; 
for (i=0; i<total; i++) { 
image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue; 
description* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
} 
firstImage();
} else { 
content = "file not loaded!";
}
} 
xmlData = new XML(); 
xmlData.ignoreWhite = true; 
xmlData.onLoad = loadXML; 
xmlData.load("images.xml"); 

p = 0; 
this.onEnterFrame = function() { 
filesize = picture.getBytesTotal(); 
loaded = picture.getBytesLoaded(); 
preloader._visible = true; 
if (loaded != filesize) { 
preloader.preload_bar._xscale = 100*loaded/filesize;
} else { 
preloader._visible = false; 
if (picture._alpha<100) { 
picture._alpha += 10;
picture.onRelease = function(){
        getURL(description[p],"_blank");
}
}
};
}
function nextImage() { 
if (p<(total-1)) { 
p++; 
if (loaded == filesize) { 
picture._alpha = 0; 
picture.loadMovie(image[p], 1); 
desc_txt.text = description[p]; 
picture_num(); 
slideshow();
}
}
} 
function prevImage() { 
if (p>0) { 
p--; 
picture._alpha = 0; 
picture.loadMovie(image[p], 1); 
desc_txt.text = description[p]; 
picture_num();
}
} 
function firstImage() { 
if (loaded == filesize) { 
picture._alpha = 0; 
picture.loadMovie(image[0], 1); 
desc_txt.text = description[0]; 
picture_num(); 
slideshow();
}
} 
function slideshow() { 
myInterval = setInterval(pause_slideshow, delay); 
function pause_slideshow() { 
clearInterval(myInterval); 
if (p == (total-1)) { 
p = 0; 
firstImage();
} else { 
nextImage();
}
}
}