Join Todd Perkins for an in-depth discussion in this video Creating the VolumeSlider class, part of Flash CS4 Professional Audio Techniques.
Now we will look at initializing the VolumeSlider class by adding some basic…properties and writing some code in the constructor method.…So, if you don't have access to the exercise files, make sure you declare the…package com.lynda.audio and save the VolumeSlider file in that same folder.…That would be the audio folder.…Also make sure that you call it VolumeSlider with a capital V, capital S, same…thing for the class name and the constructor method.…Let's look at our import statements, importing flash.display.*, flash.events.*,…flash.geom.*, flash.media.*, those are the sound classes and then gs.*.…
Now, if you have watched a lot of my training for Flash CS4, I have talked…about TweenLite that's an ActionScript twining engine that an independent developer made.…I use that for all of my ActionScript animation because it's very easy to use.…So if you don't have that code and you are not familiar with it, I recommend…going to tweenlite.com and then just download the TweenLite engine.…When you download TweenLite, you will find a folder called gs.…
- 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.