MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 521

Components language reference
Table of Contents

Advertisement

Seeking navigation cue points
You can seek to a navigation cue point, seek to the next navigation cue point from a specified
time, and seek to the previous navigation cue point from a specified time. The following
example plays the FLV file cuepoints.flv and seeks to the cue point at 7.748 when the
event occurs. When the cuePoint event occurs, the example calls the
seekToPrevNavCuePoint()
event occurs, the example calls the
point by adding 10 seconds to
point.
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object) {
my_FLVPlybk.seekToNavCuePoint("point2");
}
my_FLVPlybk.addEventListener("ready", listenerObject);
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object) {
trace(eventObject.info.time);
if(eventObject.info.time == 7.748)
my_FLVPlybk.seekToPrevNavCuePoint(eventObject.info.time - .005);
else
my_FLVPlybk.seekToNextNavCuePoint(eventObject.info.time + 10);
}
my_FLVPlybk.addEventListener("cuePoint", listenerObject);
my_FLVPlybk.contentPath = "http://helpexamples.com/flash/video/
cuepoints.flv";
For more information, see
FLVPlayback.seekToNextNavCuePoint()
FLVPlayback.seekToPrevNavCuePoint()
Enabling and disabling embedded FLV file cue points
You can enable and disable embedded FLV file cue points using the
setFLVCuePointEnabled()
and do not work with the
seekToPrevNavCuePoint()
,
findCuePoint()
findNearestCuePoint()
method to seek to the first cue point. When that
seekToNextNavCuePoint()
eventObject.info.time
FLVPlayback.seekToNavCuePoint()
on page
on page
method. Disabled cue points do not trigger
,
seekToCuePoint()
methods. You can find disabled cue points, however, with the
, and
method to seek to the last cue
, which is the time of the current cue
on page
661, and
663.
seekToNextNavCuePoint()
findNextCuePointWithName()
ready
cuePoint
660,
events
cuePoint
, and
methods.
Using cue points
519

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?

This manual is also suitable for:

Flash 8

Table of Contents