User Guide
Timeline object 343
Description
Method; deletes the frame.
Example
The following example deletes Frame 5 up to, but not including, Frame 10 of the top layer in the
current scene (remember that index values are different from frame number values):
fl.getDocumentDOM().getTimeline().currentLayer = 0;
fl.getDocumentDOM().getTimeline().removeFrames(4, 9);
The following example deletes Frame 8 on the top layer in the current scene:
fl.getDocumentDOM().getTimeline().currentLayer = 0;
fl.getDocumentDOM().getTimeline().removeFrames(7);
timeline.reorderLayer()
Availability
Flash MX 2004.
Usage
timeline.reorderLayer(layerToMove, layerToPutItBy [, bAddBefore])
Parameters
layerToMove
A zero-based index that specifies which layer to move.
layerToPutItBy A zero-based index that specifies which layer you want to move the layer next
to. For example, if you specify 1 for
layerToMove and 0 for layerToPutItBy, the second layer is
placed next to the first layer.
bAddBefore Specifies whether to move the layer before or after layerToPutItBy. If you specify
false, the layer is moved after layerToPutItBy. The default value is true. This parameter is
optional.
Returns
Nothing.
Description
Method; moves the first specified layer before or after the second specified layer.
Example
The following example moves the layer at index 2 to the top (on top of the layer at index 0):
fl.getDocumentDOM().getTimeline().reorderLayer(2, 0);
The following example places the layer at index 3 after the layer at index 5:
fl.getDocumentDOM().getTimeline().reorderLayer(3, 5, false);