Description
Event; notification that the playhead has reached the cue point. The
object has the following properties:
A string that indicates the name of the cue point.
cuePointName
A number, expressed in frames or seconds, that indicates when the cue point
cuePointTime
was reached.
A reference to the MediaPlayback object if there is one, or to the MediaDisplay
target
object itself.
The string
type
"cuePoint"
Example
The following example uses an object listener to determine when a cue point has
been reached:
var myCuePointListener:Object = new Object();
myCuePointListener.cuePoint = function(eventObject:Object){
trace("heard " + eventObject.type + ", " + eventObject.target + ", " +
eventObject.cuePointName + ", " + eventObject.cuePointTime);
};
myPlayback.addEventListener("cuePoint", myCuePointListener);
See also
Media.addCuePoint()
Media.cuePoints
Applies to
MediaDisplay, MediaPlayback.
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
myMedia.cuePoints
or
myMedia.cuePoints[N]
.
,
,
Media.cuePoints
Media.getCuePoint()
event
Media.cuePoint
Media.cuePoints
865
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers