User Guide

524 Chapter 6: Components Dictionary
Edition
Flash MX Professional 2004.
Usage
listenerObject = new Object();
listenerObject.cuePoint = function(eventObject){
// insert your code here
}
myMedia.addEventListener("cuePoint", listenerObject)
Description
Event; notification that the playhead has reached the cue point. The Media.cuePoint event
object has the following properties:
name A string that indicates the name of the cue point.
time A number, expressed in frames or seconds, that indicates when the cue point was reached.
target A reference to the MediaPlayback object if there is one, or to the MediaDisplay object
itself.
type The string "cuePoint".
Example
The following example uses an object listener to determine when a cue point has been reached:
var myCuePointListener = new Object();
myCuePointListener.cuePoint = function(eventObject){
trace("heard " + eventObject.type + ", " + eventObject.target);
}
myPlayback.addEventListener("cuePoint", myCuePointListener);
See also
Media.addCuePoint()
, Media.cuePoints, Media.getCuePoint()
Media.cuePoints
Applies to
MediaDisplay, MediaPlayback
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
myMedia.cuePoints
or
myMedia.cuePoints[N]