User Guide

692 FLVPlayback Component (Flash Professional Only)
FLVPlayback.volumeBar
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.volumeBarInterval
Description
Property; a MovieClip object that is the volume bar control. For more information on using
FLV Playback Custom UI components for playback controls, see “Skinning FLV Playback
Custom UI components individually” on page 525.
Example
The following example uses the backButton, forwardButton, playButton, pauseButton,
stopButton, and volumeBar properties to attach individual FLV Custom UI controls to an
FLVPlayback component.
Drag an FLVPlayback component to the Stage, give it an instance name of my_FLVPlybk,
and set the
skin parameter to None in the Component inspector. Next, add the following
individual FLV Custom UI components, and give them the instance names shown in
parentheses: BackButton (my_bkbttn), ForwardButton (my_fwdbttn), PlayButton
(my_plybttn), PauseButton (my_pausbttn), StopButton (my_stopbttn), and VolumeBar
(my_vBar). 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 BackButton, ForwardButton, PlayButton, PauseButton,
StopButton and VolumeBar components in the Library
*/
import mx.video.*;
my_FLVPlybk.backButton = my_bkbttn;
my_FLVPlybk.forwardButton = my_fwdbttn;
my_FLVPlybk.playButton = my_plybttn;
my_FLVPlybk.pauseButton = my_pausbttn;
my_FLVPlybk.stopButton = my_stopbttn;
my_FLVPlybk.volumeBar = my_vBar;
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
cuepoints.flv";