Working with cue points
You can use several different kinds of cue points with Flash Video. You can use ActionScript
to interact with cue points that you embed in an FLV file (when you create the FLV file), or
that you create by using ActionScript.
Navigation cue points
You embed navigation cue points in the FLV stream and FLV
metadata packet when you encode the FLV file. You use navigation cue points to let users seek
to a specified part of a file.
Event cue points
You embed event cue points in the FLV stream and FLV metadata packet
when you encode the FLV file. You can write code to handle the events that are triggered at
specified points during FLV playback.
ActionScript cue points
External cue points that you create by using ActionScript code.
You can write code to trigger these cue points in relation to the video's playback. These cue
points are less accurate than embedded cue points (up to a tenth of a second), because the
video player tracks them separately.
Navigation cue points create a keyframe at the specified cue point location, so you can use
code to move a video player's playhead to that location. You can set particular points in an
FLV file where you might want users to seek. For example, your video might have multiple
chapters or segments, and you can control the video by embedding navigation cue points in
the video file.
If you plan to create an application in which you want users to navigate to a cue point, you
should create and embed cue points when you encode the file instead of using ActionScript
cue points. You should embed the cue points in the FLV file, because they are more accurate
to work with. For more information on encoding FLV files with cue points, see
"Embedding
in Using Flash.
cue points (Flash Professional only)" on page 296
You can access cue point parameters by writing ActionScript. Cue point parameters are a part
of the event object received with the
event (e
). For
cuePoint
vent.info.parameters
information on accessing or tracing cue points, see
"Working with cue points" on page 611
in
Using Flash.
Tracing cue points from an FLV file
You can trace the cue points that are embedded in an FLV document using
. You need to recurse the structure of the metadata that returns to see
NetStream.onMetaData
the cue point information.
About using FLV video
611
Need help?
Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?