 |
|
| |
Create a Flash 5 Remixer (cont...)
|
|
|
Create a Mute Toggle Button
The final element in your channel strip is the mute toggle button. When "muted" a track is silenced regardless of changes to the volume slider, when "unmuted" volume control returns to the volume slider.
Start your remixer with all tracks but one muted so users can build a song. For buttons that will be "muted" at the beginning, frame one of your movie clip represents the "muted" state.
1. Create a button with the following ActionScript attached:
on(release) {
play( ); // change frames when clicked
}
2. Create a two-frame movie clip with three layers: button, mute graphic and actions.
3. Place the button in frames one and two of the button layer.
4. Create the "muted" state graphic and place it in frame one only of the "mute graphic" layer.
5. Add the following ActionScript code to frame one of the actions layer:
stop( );
muted = true;
6. Add similar ActionScript code to frame two:
stop( );
muted = false;
7. Place the mute button movie clip on the stage and name it for its corresponding audio track, such as 'drumMuteBtn".
Figure 4. Mute Toggle Button defaults to "muted" state
For buttons that will be "unmuted" at the beginning, frame two of your movie clip represents the "muted" state. To make the default state of a mute button "unmuted" you must move the mute graphic to frame two and switch the ActionScript from steps 5 and 6.
Build your Remixer Console
First, you will create a channel strip for each audio track. To assemble a channel strip, place the volume slider on top, the pan slider in the middle and the mute button on the bottom. Place each channel strip side by side using the audio mixer screen shot (see figure 1) as an example. The master control strip should be furthest to the right.
You must also create a "transport", which is a set of controls consisting of play and stop buttons and a dynamic text box, with the variable name "mixerstate", that shows the remixer's play state or load progress. Later, you will add the code to play and stop your remixer and display its state.
Finally you should include a title, credits and copyright statement. Place your transport controls and title information on the main timeline.
|
|
FEATURE SOFTWARE:
html++ Dynamic HTML Class Library
Build dynamic web pages using C++ Class Libraries instead of HTML tags. Buy Now!
FEATURE BOOK:
Encrypt It
Encrypt and Decrypt Data, Passwords and Files within your application. Buy Now!
|
|
|