Accessibility
 
Home > Products > Flash > Support > Building Applications
Flash Icon Macromedia Flash Support Center - Building Applications
Creating a JPEG slide show with XML
This article shows you how to create a dynamic JPEG slide show in Macromedia Flash MX using XML (Extensible Markup Language) and the XML ActionScript object.
The sample slide show application shown below uses an external XML file that provides, for each slide, the URL to a JPEG file and a short text description. Each JPEG is loaded dynamically with the loadMovie action, and buttons let the audience navigate between slides. The movie also displays the index of the slide currently displayed, and the total number of slides.

To view this demo, you need the latest version of the Macromedia Flash Player.
Download the free Macromedia Flash Player now.

Get Macromedia Flash Player

The benefit to using XML in this case is that the slide show's content can be updated without having to modify the original Macromedia Flash document. You can simply update the XML file (a text file) with different slide captions, or paths to different JPEG images.
Download the Windows source file (62K)
Download the Macintosh source file (68K)

About the slide show application
Examine the sample Macromedia Flash movie
About XML
About the XML object
Loading the XML document
Updating the current slide
Navigating between slides
Going forward


Article Information
Author: Tim Statler

Tim Statler writes tutorials for the macromedia.com support site.

Last Updated: 25 June 2002

Keywords: Flash, XML, JPEG, slide show, loadMovie, tutorial

Doc ID: 9941