First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: krishna | Website: http://www.sumudra.com
Step 1: Create XML Object
photos_xml = new XML();

Step 2: Load the slides.xml 

step 3: onLoad just goto startSlideShow()

photos_xml.onLoad = startSlideShow;

Step 4:Read the records of the data of the XML and send the output to flash text Tool box

function startSlideShow(success) 
if (success == true) 
rootNode = photos_xml.firstChild;

totalSlides = rootNode.childNodes.length;

firstSlideNode = rootNode.firstChild;
currentSlideNode = firstSlideNode;
currentIndex = 1;


// Hear updating the Node value or name to the flash file.

function updateSlide(newSlideNode) {
slideText = newSlideNode.firstChild.nodeValue;

// on click the next button it read the next child node of the XML file.

next_btn.onRelease = function() 
nextSlideNode = currentSlideNode.nextSibling;

if (nextSlideNode == null) 
} else {
currentSlideNode = nextSlideNode;

//on click the back button it read the previous record and display it in the flash text tool box.

back_btn.onRelease = function() 
previousSlideNode = currentSlideNode.previousSibling;

if (previousSlideNode == null) 
} else {
currentSlideNode = previousSlideNode;

» Level Basic

Added: 2007-02-23
Rating: 8.2 Votes: 5
» Author
Flash Developer
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.