See also
FLVPlayback.volume
FLVPlayback.volumeBarScrubTolerance
FLVPlayback.volumeBarScrubTolerance
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.volumeBarScrubTolerance
Description
Property; a number that specifies how far a user can move the volume bar handle before an
update occurs. The value is expressed as a percentage. The default value is 5.
Example
The following example sets the
event that shows the volume setting as the user drags the handle on the
volumeUpdate
volume bar.
Drag an FLVPlayback component to the Stage, and give it an instance name of
my_FLVPlybk. Then add the following code to the Actions panel on Frame 1 of the
Timeline:
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybk
*/
import mx.video.*;
my_FLVPlybk.volumeBarScrubTolerance = 20;
var listenerObject:Object = new Object();
listenerObject.volumeUpdate = function(eventObject:Object) {
trace("Playhead time is: " + my_FLVPlybk.playheadTime);
trace("Volume is: " + my_FLVPlybk.volume);
};
my_FLVPlybk.addEventListener("volumeUpdate", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
cuepoints.flv";
See also
FLVPlayback.volumeBar
694
FLVPlayback Component (Flash Professional Only)
,
FLVPlayback.volumeBar
volumeBarScrubTolerance
,
FLVPlayback.volumeBarInterval
,
,
FLVPlayback.volumeUpdate
property to
and creates a
20
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers