In this example we load an XML file, and then load pictures.

Get Adobe Flash player

Click the arrow to hear the sound, click the picture to see the next animal

Save the fla file to your computer to experiment.
Save the xml file to the same directory.



The XML file has an array of animals. For each animal there is a name, and 0 or more sounds that the animal makes.

To do:
  • Add another animal.
  • Create and open a different xml file with pictures and title.
  • Instead of changing pictures every 50 frames, add buttons to move forward and backwards.

NEXT: Changing a Color in ActionScript