User Guide

FLVPlayback class 649
Example
The following example listens for the scrubFinish event and shows the time at which
scrubbing stops.
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.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
var listenerObject:Object = new Object();
listenerObject.scrubFinish = function(eventObject:Object):Void {
trace("Scrubbing stopped at " + eventObject.playheadTime);
trace("Current state is " + eventObject.state);
};
my_FLVPlybk.addEventListener("scrubFinish", listenerObject);
See also
FLVPlayback.playheadTime, FLVPlayback.seek, FLVPlayback.seekBar,
FLVPlayback.scrubStart, FLVPlayback.state, FLVPlayback.stateChange
FLVPlayback.scrubStart
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
var listenerObject:Object = new Object();
listenerObject.scrubStart = function(eventObject:Object):Void {
// insert event-handling code here
};
my_FLVplybk.addEventListener("scrubStart", listenerObject);
NOTE
You must grab the handle of the SeekBar, drag it, and release it to cause the event.