MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 663

Components language reference
Table of Contents

Advertisement

Usage
my_FLVplybk.seekToNavCuePoint(time:Number):Void
my_FLVplybk.seekToNavCuePoint(name:String):Void
my_FLVplybk.seekToNavCuePoint(cuePoint:Object):Void
Parameters
A number that is the time of the navigation cue point to seek. The method uses only
time
the first three decimal places and rounds any additional decimal places.
A string that is the name of the cue point to seek.
name
c
A cue point object in which you set the
uePoint
cue point to seek.
Returns
Nothing.
Description
Method; seeks to a navigation cue point that matches the specified time or is later. If time is
undefined,
, or less than 0, the method starts its search at time 0.
null
If you specify only a time, the method seeks to a cue point that matches that time or is later.
If you specify a name, the method seeks to the first enabled cue point that matches it (for
more information about enabling/disabling cue points see
"FLVPlayback.setFLVCuePointEnabled()" on page
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 to the cue point named point2 when the
The
event handler shows the
cuePoint
that occurs.
property might not have the expected value
playheadTime
name
and
time
name
665).
playheadTime
playheadTime
playheadTime
,
, and
values for each cue point
time
type
properties to specify the
to cause seeking.
property,
property has updated.
event occurs.
ready
FLVPlayback class
661

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