Media.addCuePoint()

Applies to

MediaDisplay, MediaPlayback.

Availability

Flash Player 7.

Edition

Flash MX Professional 2004.

Usage

myMedia.addCuePoint(cuePointName, cuePointTime)

Parameters

cuePointName A string that names the cue point.

cuePointTime A number, in seconds, that indicates when a cuePoint event is broadcast.

Returns

Nothing.

Description

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.

Example

The following code adds a cue point called Homerun to myMedia when the playhead time equals 16 seconds.

myMedia.addCuePoint("Homerun", 16);

See also

Media.cuePoint, Media.cuePoints, Media.getCuePoint(), Media.removeAllCuePoints(), Media.removeCuePoint()


Flash CS3