I have an photogallery in my flash…
it loads the images dynamically and takes the url from an external .xml file
It working fine buy i need some modification in it…
i dont mind changind the script if it fulfils my requirement. Check the attached image…it will give an idea.
I have tried the script(i have pasted it below) and works fine…the changes i need is i want to show three thumbnails which gives an idea of the previous and next image to come on the photogallery.
I have attached an gif file which will give an idea how i want it…Please help.
Kapi
Script i am using right now:
slides_xml = new XML();
slides_xml.onLoad = startSlideShow;
slides_xml.load(“intr.xml”);
slides_xml.ignoreWhite = true;
back_btn.enabled = false;
back_btn._alpha = 50;
next_btn.enabled = true;
next_btn._alpha = 100;
//
// Show the first slide and intialize variables
function startSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
firstSlideNode = rootNode.firstChild;
currentSlideNode = firstSlideNode;
updateSlide(firstSlideNode);
}
}
//
// Update current slide with new image
function updateSlide(newSlideNode) {
imagePath = newSlideNode.attributes.jpegURL;
slideText = newSlideNode.firstChild.nodeValue;
targetClip.loadMovie(imagePath);
targetClipa.loadMovie(imagePath);
}
//
// Next slide button
next_btn.onRelease = function() {
nextSlideNode = currentSlideNode.nextSibling;
back_btn._alpha = 100;
back_btn.enabled = true;
if (nextSlideNode == null) {
next_btn._alpha = 50;
next_btn.enabled = false;
break;
} else {
updateSlide(nextSlideNode);
currentSlideNode = nextSlideNode;
}
};
//
// Previous slide button
back_btn.onRelease = function() {
previousSlideNode = currentSlideNode.previousSibling;
next_btn._alpha = 100;
next_btn.enabled = true;
if (previousSlideNode == null) {
back_btn._alpha = 50;
back_btn.enabled = false;
break;
} else {
currentSlideNode = previousSlideNode;
updateSlide(previousSlideNode);
}
};