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
object has the following properties:
A string that indicates the name of the cue point.
name
A number, expressed in frames or seconds, that indicates when the cue point was reached.
time
A reference to the MediaPlayback object if there is one, or to the MediaDisplay object
target
itself.
The string
type
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
Applies to
MediaDisplay, MediaPlayback
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
myMedia.cuePoints
or
myMedia.cuePoints[N]
524
Chapter 6: Components Dictionary
.
"cuePoint"
,
Media.cuePoints
,
Media.getCuePoint()
event
Media.cuePoint
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers