ActionScript 2.0 Components Language Reference |
|
|
|
| FLVPlayback Component > FLVPlayback class > FLVPlayback.playPauseButton | |||
Flash Player 8.
Flash Professional 8.
my_FLVPlybk.playPauseButton
Property; a MovieClip object that is the PlayPauseButton. For more information on using FLV Playback Custom UI components for playback controls, see Skinning FLV Playback Custom UI components individually.
The following example uses the playPauseButton, stopButton, backButton, and forwardButton properties to attach individual FLV Custom UI controls to an FLVPlayback component.
Drag an FLVPlayback component to the Stage, and give it an instance name of my_FLVPlybk. Next, add the following individual FLV Custom UI components, and give them the instance names shown in parentheses: BackButton (my_bkbttn), ForwardButton (my_fwdbttn), PlayPauseButton (my_plypausebttn), and StopButton (my_stopbttn). Then add the following lines of code to the Actions panel:
/** Requires: - FLVPlayback component on the Stage with an instance name of my_FLVPlybk - FLV Custom UI PlayPauseButton, StopButton, BackButton, and ForwardButton components in the Library */ import mx.video.*; my_FLVPlybk.playPauseButton = my_plypausbttn; my_FLVPlybk.stopButton = my_stopbttn; my_FLVPlybk.backButton = my_bkbttn; my_FLVPlybk.forwardButton = my_fwdbttn; my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/water.flv";
FLVPlayback.playButton, FLVPlayback.playPauseButton, FLVPlayback.paused, FLVPlayback.skin
|
|
|
|