One of the exciting features introduced in Flash MX was the ability
to load MP3s at runtime using the
In this chapter, we create an MP3 jukebox application that enables
users to load MP3 files from various locations. The user can create a
playlist of songs and play them back. To make things extra saucy, we
also add a five-second cross-fade between songs. Refer to Chapter 13 for basic recipes regarding sound playback.
Refer to Chapter 14 for information on recording
and publishing audio with FlashCom.
The MP3 player that you create in this chapter is composed of several parts, so the first step is to determine what these pieces are and how they work together to create an entire application. The final files are available for download from http://www.person13.com/ascb. Here is a brief synopsis of each part of this application:
Allows users to select an MP3 from the server from which the jukebox is being served so that it can be played. This feature uses Flash Remoting.
A custom component used to control the playback of the songs in the jukebox playlist. The jukebox controller is composed of two instances of the Sound Controller component from Recipe 13.16.