In this tutorial, you will learn how to create a
slideshow that loads image data from an XML file. While I
will explain the new concepts and code used in making the
slideshow, you must understand how my earlier photo gallery
explained in the xml photo gallery tutorial works.

The reason is that I will extend
my earlier photo gallery code to work in this slideshow format.
The following is an example of a slideshow you will create:

[ the slideshow automatically
progresses to the next image ]

Most of this tutorial involves using recycled
code and interface elements from my earlier tutorial.
Therefore, you should download and open the final photo
gallery source file provided below:

If you want, you can test your
movie now itself. You should see a fully functioning photo
gallery.

Make sure you open the source
file from above into your version of Flash. Select the frame in the
action layer
and press F9 to view the Actions. Highlight all of the code you see
and overwrite it with the following code:

If you test your animation now,
you will see that the photo gallery cycles through your images
automatically using data from the images.xml file. If you
want, you can remove the next and previous buttons, for
you probably won't need it.

On the next page, I will point
out the few, yet important, differences between the photo gallery code and the
new slideshow code. After that, I will explain setInterval
and how it works..