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 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";

See also

FLVPlayback.volumeBar, FLVPlayback.volumeBarInterval