/**
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.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
until after scrubbing stops.
The component also dispatches the
new state, which should be
648
FLVPlayback Component (Flash Professional Only)
FLVPlayback.seekBar
state
stateChange
,
"playing"
"paused"
,
FLVPlayback.scrubFinish
and
. The state will be
playheadTime
event with the state property equal to the
,
, or
"stopped"
,
"seeking"
.
"buffering"
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers