Property
timeline.frameCount
timeline.layerCount
timeline.layers
timeline.name
timeline.addMotionGuide()
Availability
Flash MX 2004.
Usage
timeline.addMotionGuide()
Parameters
None.
Returns
An integer that represents the zero-based index of the newly added guide layer. If the current layer
type is not of type "Normal", Flash returns -1.
Description
Method; adds a motion guide layer above the current layer and attaches the current layer to the
newly added guide layer, converting the current layer to a layer of type "Guided".
This method functions only on a layer of type "Normal". It has no effect on a layer whose type is
"Folder", "Mask", "Masked", "Guide", or "Guided".
Example
The following example adds a motion guide layer above the current layer, and converts the
current layer to
"Guided"
fl.getDocumentDOM().getTimeline().addMotionGuide();
timeline.addNewLayer()
Availability
Flash MX 2004.
Usage
timeline.addNewLayer([name] [, layerType [, bAddAbove]])
326
Chapter 3: Objects
Description
Read-only; an integer that represents the number of frames
in this Timeline's longest layer.
Read-only; an integer that represents the number of layers in
the specified Timeline.
Read-only; an array of layer objects.
A string that represents the name of the current Timeline.
:
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?
Questions and answers