MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 485

Extending flash
Table of Contents

Advertisement

See also
timeline.setSelectedLayers()
timeline.insertBlankKeyframe()
Availability
Flash MX 2004.
Usage
timeline.insertBlankKeyframe([frameNumIndex])
Parameters
A zero-based index that specifies the frame at which to insert the keyframe.
frameNumIndex
If you omit
, the method uses the current playhead frame number. This
frameNumIndex
parameter is optional.
If the specified or selected frame is a regular frame, the keyframe is inserted at the frame. For
example, if you have a span of 10 frames numbered 1-10 and you select Frame 5, this method
makes Frame 5 a blank keyframe, and the length of the frame span is still 10 frames. If Frame
5 is selected and is a keyframe with a regular frame next to it, this method inserts a blank
keyframe at Frame 6. If Frame 5 is a keyframe and the frame next to it is already a keyframe,
no keyframe is inserted but the playhead moves to Frame 6.
Returns
Nothing.
Description
Method; inserts a blank keyframe at the specified frame index; if the index is not specified, the
method inserts the blank keyframe by using the playhead/selection. See also
.
timeline.insertKeyframe()
Example
The following example inserts a blank keyframe at Frame 20 (remember that index values are
different from frame number values):
fl.getDocumentDOM().getTimeline().insertBlankKeyframe(19);
The following example inserts a blank keyframe at the currently selected frame (or playhead
location if no frame is selected):
fl.getDocumentDOM().getTimeline().insertBlankKeyframe();
Timeline object
485

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents