sigh
Okay Here’s the thing…I know this has been asked in many different ways, but as much as I searched and cut and pasted, I can’t seem to get an answer or get my code to work. I currently have an xml slideshow and I would like to have my images transistion with a nice fade in and out technique. What is the exact code and where do I put it? Any help would be appreciated.
Here’s my AS code…
slides_xml = new XML();
slides_xml.onLoad = startSlideShow;
slides_xml.load("images.xml");
slides_xml.ignoreWhite = true;
//
// Show the first slide and intialize variables
function startSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
firstSlideNode = currentSlideNode=rootNode.firstChild;
updateSlide(firstSlideNode);
}
}
//
// Updates the current slide with new image and text
function updateSlide(newSlideNode) {
imagePath = newSlideNode.attributes.jpegURL;
x = newSlideNode.attributes.xCoor;
y = newSlideNode.attributes.yCoor;
slideText = newSlideNode.firstChild.nodeValue;
loadMovie(imagePath, targetClip);
targetClip._x = x;
targetClip._y = y;
}
//
// Event handler for 'Next slide' button
next_btn.onRelease = function() {
if (currentSlideNode.nextSibling == null) {
nextSlideNode = rootNode.firstChild;
updateSlide(nextSlideNode);
currentSlideNode = nextSlideNode;
} else {
nextSlideNode = currentSlideNode.nextSibling;
updateSlide(nextSlideNode);
currentSlideNode = nextSlideNode;
}
};
//
// Event handler for 'Previous slide' button
back_btn.onRelease = function() {
if (currentSlideNode.previousSibling == null) {
previousSlideNode = rootNode.lastChild;
updateSlide(previousSlideNode);
currentSlideNode = previousSlideNode;
} else {
previousSlideNode = currentSlideNode.previousSibling;
updateSlide(previousSlideNode);
currentSlideNode = previousSlideNode;
}
};
/// Right-Click Function
function doSomething() {}
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("This movie is copyrighted by Your Company Name", doSomething);
MENU.customItems.push(Functioned);
_root.menu = MENU;
Many Thnx!