User Guide
552 FLVPlayback Component (Flash Professional Only)
FLVPlayback.addASCuePoint()
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVplybk.addASCuePoint(cuePoint:Object)
my_FLVplybk.addASCuePoint(time:Number, name:String[, parameters:Object])
Parameters
cuePoint An object having name:String and time:Number (in seconds) properties, which
describe the cue point. It also might have a
parameters:Object property that holds name/
value pairs. It may have
type:String set to "actionscript". If type is missing or set to
something else, it is set automatically. If the object does not conform to these conventions, the
method throws a VideoError error.
time A number that is the time for the new cue point to be added. If you use the time
parameter, the
name parameter must follow.
name A string that specifies the name of the cue point if you submit a time parameter
instead of the
CuePoint object.
parameters Optional parameters for the cue point.
Returns
A copy of the cue point object that was added with the following additional properties:
■ array The array of cue points that were searched. Treat this array as read-only, because
adding, removing, or editing objects within it can cause cue points to malfunction.
■ index The index into the array for the returned cue point.
Description
Method; adds an ActionScript cue point and has the same effect as adding an ActionScript
cue point using the Cue Points dialog box, except that it occurs when an application executes
rather than during application development.
Cue point information is wiped out when the
contentPath property is set. To set cue point
information for the next FLV file to be loaded, set the
contentPath property first.
It is valid to add multiple ActionScript cue points with the same name and time. When you
remove ActionScript cue points with the
removeASCuePoint() method, all cue points with
the same name and time are removed.