User Guide
648 FLVPlayback Component (Flash Professional Only)
/**
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
FLVPlayback.scrubFinish
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
var listenerObject:Object = new Object();
listenerObject.scrubFinish = function(eventObject:Object):Void {
// insert event-handling code here
};
my_FLVplybk.addEventListener("scrubFinish", listenerObject);
Description
Event; dispatched when the user stops scrubbing the FLV file with the SeekBar. 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. Scrubbing stops when the user releases the handle of the
SeekBar.
The event object has the properties
state and playheadTime. The state will be "seeking"
until after scrubbing stops.
The component also dispatches the
stateChange event with the state property equal to the
new state, which should be
"playing", "paused", "stopped", or "buffering".