MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 472

Extending flash
Table of Contents

Advertisement

Example
The following example adds a new layer to the timeline with a default name generated by
Flash:
fl.getDocumentDOM().getTimeline().addNewLayer();
The following example adds a new folder layer on top of the current layer and names it
:
"Folder1"
fl.getDocumentDOM().getTimeline().addNewLayer("Folder1", "folder", true);
timeline.clearFrames()
Availability
Flash MX 2004.
Usage
timeline.clearFrames([startFrameIndex [, endFrameIndex]])
Parameters
A zero-based index that defines the beginning of the range of frames to
startFrameIndex
clear. If you omit
, the method uses the current selection. This parameter
startFrameIndex
is optional.
A zero-based index that defines the end of the range of frames to clear. The
endFrameIndex
range goes up to, but does not include,
. If you specify only
endFrameIndex
,
defaults to the value of
. This
startFrameIndex
endFrameIndex
startFrameIndex
parameter is optional.
Returns
Nothing.
Description
Method; deletes all the contents from a frame or range of frames on the current layer.
Example
The following example clears the frames from Frame 6 up to, but not including, Frame 11
(remember that index values are different from frame number values):
fl.getDocumentDOM().getTimeline().clearFrames(5, 10);
The following example clears Frame 15:
fl.getDocumentDOM().getTimeline().clearFrames(14);
472
Objects

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents