MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 660

Components language reference
Table of Contents

Advertisement

FLVPlayback.seekPercent()
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVplybk.seekPercent(percent:Number)
Parameters
A number that specifies a percentage of the length of the FLV file at which to place
percent
the playhead.
Returns
Nothing.
Description
Method; seeks to a percentage of the file and places the playhead there. The percentage is a
number between 0 and 100.
For several reasons, the
property might not have the expected value
playheadTime
immediately after calling one of the seek methods or setting
to cause seeking.
playheadTime
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
property,
playheadTime
does not update immediately. To obtain the time after the seek is complete,
playheadTime
listen for the
event, which does not start until the
property has updated.
seek
playheadTime
Example
The following example disables the FLV file from playing automatically. When the FLV file is
ready, it sets the playhead 30 percent into the playing time and begins playing at that point.
658
FLVPlayback Component (Flash Professional Only)

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