Topics
- Loading Audio
- Loading XML – An XML Photo Gallery
Loading Audio
Loading external audio files is similar to loading image or swf files, but you use the Sound and SoundChannel objects instead of the Loader. These objects also let you play and stop the playback.
Loading XML
XML stands for eXtensible Markup Language. This is a special document format that Flash can read, and is a relatively simple way to load any kind of data into your Flash application. Today we are going to look at an image gallery that gets all its info from an XML file.
Homework
Combine the two exercises today to make an audio player that can play mutliple tracks. The track info should come from an xml file. The player should have buttons to play and stop the current track, and navigate to the next and previous tracks. Note: If you use the method in the example, when you hit the stop button and then the play button, your track will always start over. For the purposes of this exercise, that’s ok!