XML Image Slideshow with Preloader

Category : Flash Views : 38964
Version : 8 Rating
3.3/5 (46 votes)
Type : Text Source File: xml-image-slideshow-with-preloader.zip
Result: See the result


Previous | 1 | 2 | 3 | Next

Free Flash Tutorials, Actionscript, XML Image Slideshow with Preloader

We are going to make a simple slideshow that loads images and sets the time between slides from an xml file.

Create a new Movie Clip called "Bar", this is going to be our progress bar between slides.

Draw a bar like this:
Free Flash Tutorials, Actionscript, XML Image Slideshow with Preloader
Drag the Movie Clip to the stage and set the instance name to "Bar".

Now drag a loader component and make it the same size of the stage. Instance name "imgLoader".
Free Flash Tutorials, Actionscript, XML Image Slideshow with Preloader

Create an xml file in the notepad that looks like this (remember that the XML file has to be in UTF-8 encoding):
<xml> // the time between slides <interval time = "2000" /> //path to the first image. <image path = "1.jpg" /> //you can put as much images as you want. <image path = "2.jpg" /> <image path = "3.jpg" /> <image path = "4.jpg" /> <image path = "5.jpg" /> </xml>

And save it with the name "images.xml" in the same folder your project.


del.icio.us digg it Reddit Stumble Upon Technorati

Previous | 1 | 2 | 3 | Next




Supporters

Reseller Web Hosting