FLVPlayback.scrubbing

Availability

Flash Player 8.

Edition

Flash Professional 8.

Usage

my_FLVPlybk.scrubbing

Description

Property; a Boolean value that is true if the user is scrubbing with the SeekBar and false otherwise. Read-only.

Scrubbing refers to grabbing the handle of the seek bar and dragging it in either direction to locate a particular scene in the FLV file.

Example

The following example shows the value of the scrubbing property when a seek event occurs.

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:

NOTE

You must grab the handle of the SeekBar, drag it, and release it to cause the event.

/**
 Requires:
  - FLVPlayback component on the Stage with an instance name of my_FLVPlybk
*/
import mx.video.*;
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/water.flv";
var listenerObject:Object = new Object();
listenerObject.seek = function(eventObject:Object):Void {
    if(my_FLVPlybk.scrubbing)
        trace("User is scrubbing at: " + eventObject.playheadTime);
};
my_FLVPlybk.addEventListener("seek", listenerObject);

See also

FLVPlayback.seek, FLVPlayback.seekBar, FLVPlayback.scrubFinish, FLVPlayback.scrubStart