XML Image Slideshow with Preloader
| Category | : Flash | Views | : 38964 | ||
| Version | : 8 | Rating | : | ||
| Type | : Text | Source File | : xml-image-slideshow-with-preloader.zip | ||
| Result | : See the result | ||||

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:

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".

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.
![]() |
![]() |
![]() |
![]() |
![]() |




