Example
The following example listens for the
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:
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.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.scrubStart
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);
scrubFinish
,
FLVPlayback.seek
,
FLVPlayback.state
event and shows the time at which
,
FLVPlayback.seekBar
,
FLVPlayback.stateChange
FLVPlayback class
,
649
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers