Join Todd Perkins for an in-depth discussion in this video Viewing the FLA file, part of Flash CS4 Professional Audio Techniques.
In this chapter we are going to add a Progress Bar and time tracking through our audio player. To start out, let's take a look at our FLA file. It's essentially the same file that we worked with in the previous chapter, with just a few additions. So on the stage here, I have my movie clip player_mc, and if I double-click it, I can enter its timeline. I'll zoom into the player, and then you could see that we have one movie clip called prog_mc, and then a text field called time_txt.
Note that the time text field is a Dynamic Text field. I set the anti-aliasing to Bitmap text. And I'll make sure that the characters are embedded. Next, we'll double-click prog_mc to enter its timeline. Inside of prog_mc, there are two elements. The dragable element called drag_mc, and then the bar in the background, which is called the bar_mc.
These are just simple bitmap graphics. Again, you can just use your own vector graphics if you like. And that's really all that there is to this FLA file. So it's the same one we worked within the last chapter, with the addition of this movie clip prog_mc, and this text field, time_txt.
- Playing and pausing audio in a created player class
- Controlling audio progress and showing it in a text field
- Loading XML playlist data into the final player
- Animating a volume slider and using effects to add depth
- Making Flash applications sharable
- Viewing the finished player and taking it for a spin
Skill Level Intermediate
Q: I am having trouble getting the exercise files to work for this title. For example, when I drag the progress bar of a song to another location on the slider, the movieclip always jumps back to the beginning and the song starts over. What could be causing this error?
A: An update to Flash since the time of recording broke this functionality. The problem appears to happen when Flash compiles the SWF in Flash Player 10. If you change your publish settings to Flash Player 9 instead, you won't see any problems.