
Creating the application

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.
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.
