Part 2: Planning our controls
What do we want to end up with? For the "Western Australia: Land and People" exhibition we needed a movie control that we could just drag and drop on any file that had audio in it (we had over 80 files to add controls to, so it had to be quick and simple). This means that everything has to be put in to a single movie so that we can just drag and drop the controls onto our sound. So first up:
- We needed a movie clip to contain our controls. We called this movie "media-controls".
Within that we needed Play/Pause and Rewind buttons, giving:
- Play button, "play".
- Pause button, "pause".
- Rewind button, "rew".
A slider would be nice, for selecting a point to play from:
- We wanted a movie clip to contain the slider, "progress-bar".
And the slider should have a Drag button for positioning the playhead:
- Drag button, "dragger".
The slider should probably also contain a preload or streaming indicator to give some feedback on how much of the sound has been loaded so far:
- Movie clip to indicate preload, "frames-loaded".
This image shows the slider (on the left) with the dragger and a light grey preload indicator. On the right are the rew, play, and pause buttons. All these elements will be contained in a single movie clip ready for us to drop on to a sound.
That'll do for now. We're going to build and test the controls in test.fla and then, when it all works, we'll rip out the control movie and dump it into a media-controller.fla where we will make it available as a shared resource. That way, we'll be able to use it anywhere.
All right, easy bits first.
|» Level Advanced|
Rating: 8 Votes: 63
|Tim is a co-director of the Glasson Murray Group, providing quality graphic design, illustration, 3D visualisation, interactive environments, virtual reality, multimedia and website services.|
|Download the files used in this tutorial.|
|Download (2157 kb)|
|More help? Search our boards for quick answers!|