MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 653

Components language reference
Table of Contents

Advertisement

FLVPlayback.seek
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
var listenerObject:Object = new Object();
listenerObject.seek = function(eventObject:Object):Void {
// insert event-handling code here
};
my_FLVplybk.addEventListener("seek", listenerObject);
Description
Event; dispatched when the location of playhead is changed by a call to
property or by using the seekBar control. The
playheadTime
destination time. The event object has the properties
the index number of the video player to which the event applies.
The FLVPlayback instance dispatches the
event when the seek is forward. It also dispatches the
fastForward
For several reasons, the
immediately after calling one of the seek methods or setting
First, for a progressive download, you can seek only to a keyframe, so a seek takes you to the
time of the first keyframe after the specified time. (When streaming, a seek always goes to the
precise specified time even if the source FLV file doesn't have a keyframe there.) Second,
seeking is asynchronous, so if you call a seek method or set the
does not update immediately. To obtain the time after the seek is complete,
playheadTime
listen for the
event, which does not start until the
seek
Example
The following example seeks 2 seconds into the FLV file when the
function triggers a
seek()
and the name of the FLVPlayback instance.
rewind
property might not have the expected value
playheadTime
event, at which point the listener displays the
seek
seek()
playheadTime
,
state
playheadTime
event when the seek is backward and the
playheadUpdate
playheadTime
playheadTime
playheadTime
ready
FLVPlayback class
, by setting the
property is the
, and
, which is
vp
event.
to cause seeking.
property,
property has updated.
event occurs. The
playheadTime
651

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents