Adding controls to your custom audio player
Playing music by itself is pretty cool, but is not very useful unless we give our users a way to interact with the playback of that audio track. In this section we will create some very basic controls that will allow our users to do just that. Although there are a handful of controls that we can add to this custom audio player, this section will demonstrate the concept by adding the most basic control for multimedia, which is the play and pause buttons.
Adding a play and pause button
To begin, we will need to first move and resize our title field within our Flash application, so that it can hold more text than "Hello World". We can then make room for some new controls that will be used to control the playback of our audio file. Again, the design of each of these components is subjective, but what is important is the MovieClip instance hierarchy, which will be used within our ActionScript code. Before we begin, we will need to create a new layer in...