The XML file

To do this tutorial you need to be familiar with XML. If you are not then first get familiar with XML. There are a number of tutorials or you can get this book. The XML file, which we use is shown below. It has a very simple structure with nodes for each slide, which have attributes for the slide text and URL.

<?xml version="1.0"?>
<slides>
<sub name="landscape1" slide="images/pic_1.jpg"/>
<sub name="landscape2" slide="images/pic_2.jpg"/>
<sub name="landscape3" slide="images/pic_3.jpg"/>
<sub name="landscape4" slide="images/pic_4.jpg"/>
<sub name="landscape5" slide="images/pic_5.jpg"/>
</slides>

We name this file menu.xml and keep it in the same folder as our movie. In the next section we move to the script for the slideshow.

previous   |   next