Open the "MP3Player.fla" file. In the Library, you find MovieClips, an Image, Capuchin Services and the four Sony Ericsson Flash Lite components used: List Single-row, Progress Indicator, Soft Keys and Text.



The application has the following layers: ActionScript, SoftKeys and Container.

Mobile phones have a small amount of available memory to run Flash Lite, which forces us to a strict use of it. The MP3 Player application is structured considering this memory limitation: unused items (unshared) are removed from memory when the view changes and they are no longer needed.

There are two MovieClips in the Library (Window > Library) that contains an entire screen (view) of the application: mcPlayer and mcPlaylist.

The mcPlayer view contains the current opened song information, such as Artist, Track name, Album and playback time. It is also the main screen, since the application is started with this view loaded.

The mcPlaylist view contains the list of all songs found at the specified path (Memory card > Music folder). The songs are played in the same order that they are listed in the playlist, and this view helps the user easily find the desired song.

The views are switched when the user interacts with the Soft Keys. The mcContainer_mc MovieClip (placed in the Container layer) holds the current view, discarding the elements of the other view. For instance, if the mcPlayer is opened and the left soft key (LSK) is pressed to open the mcPlaylist, mcContainer_mc unloads mcPlayer and loads mcPlaylist view instead.

As mentioned before, the Sony Ericsson Flash Lite UI Components used are:

Soft Keys: Shared resource used for both mcPlayer and mcPlaylist views, responsible for the actions in each view.

List Single-row: Placed inside the mcPlaylist view (unshared), displays all songs available in the specified folder on the phone.

Progress Indicator: Placed inside the mcPlayer view (unshared), gives a visual feedback of the elapsed time of the song.

Text: Used inside the mcPlayer view (unshared) to show song information.