Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Media components > Media.addCuePoint() | |||
MediaDisplay, MediaPlayback.
Flash Player 7.
Flash MX Professional 2004.
myMedia.addCuePoint(cuePointName,cuePointTime)
cuePointName A string that names the cue point.
cuePointTime A number, in seconds, that indicates when a cuePoint event is broadcast.
Nothing.
Method; adds a cue point object to a MediaPlayback or MediaDisplay instance. When the playhead time equals a cue point time, a cuePoint event is broadcast.
The following code adds a cue point called Homerun to myMedia when the playhead time equals 16 seconds.
myMedia.addCuePoint("Homerun", 16);
Media.cuePoint, Media.cuePoints, Media.getCuePoint(), Media.removeAllCuePoints(), Media.removeCuePoint()
Flash CS3