ActionScript 2.0 Components Language Reference |
|
|
|
| FLVPlayback Component > FLVPlayback class > FLVPlayback.volumeBarScrubTolerance | |||
Flash Player 8.
Flash Professional 8.
my_FLVPlybk.volumeBarScrubTolerance
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.
The following example sets the volumeBarScrubTolerance property to 20 and creates a volumeUpdate event that shows the volume setting as the user drags the handle on the 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";
FLVPlayback.volumeBar, FLVPlayback.volumeBarInterval
|
|
|
|