ActionScript 2.0 Components Language Reference |
|
|
|
| FLVPlayback Component > Customizing the FLVPlayback component > Skinning FLV Playback Custom UI components individually > Button components | |||
The button components have a similar structure. The buttons include the BackButton, ForwardButton, MuteButton, PauseButton, PlayButton, PlayPauseButton, and StopButton. Most have a single movie clip on Frame 1 with the instance name placeholder_mc. This is usually an instance of the normal state for the button, but not necessarily so. On Frame 2, there are four movie clips on the Stage for each display state: normal, over, down and disabled. (At runtime, the component never actually goes to Frame 2; these movie clips are placed here to make editing more convenient and to force them to load into the SWF file without checking the Export in First Frame check box in the Symbol Properties dialog box. You must still select the Export for ActionScript option, however.)
To skin the button, you simply edit each of these movie clips. You can change their size as well as their appearance.
Some ActionScript usually appears on Frame 1. You should not need to change this script. It simply stops the playhead on Frame 1 and specifies which movie clips to use for which states.
The PlayPauseButton and MuteButton buttons are set up differently than the other buttons; they have only one frame with two layers and no script. On that frame, there are two buttons, one on top of the other--in the first case, a Play and a Pause button; in the second case, a Mute-on and a Mute-off button. To skin the PlayPauseButton or MuteButton buttons, skin each of these two internal buttons as described in Skinning FLV Playback Custom UI components individually; no additional action is required.
The BackButton and ForwardButton buttons are also set up differently than the other buttons. On Frame 2, they have extra movie clips that you can use as a frame around one or both of the buttons. These movie clips are not required and have no special capability; they are provided only as a convenience. To use them, simply drag them on the Stage from your Library panel and place them where you want them. If you don't want them, either don't use them or delete them from your Library panel.
Most of the buttons, as supplied, are based on a common set of movie clips so that you can change the appearance of all the buttons at once. You can use this capability, or you can replace those common clips and make every button look different.
|
|
|
|