![MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual Download Page 343](http://html1.mh-extra.com/html/macromedia/flash-mx-2004-flash-javascript-dictionary/flash-mx-2004-flash-javascript-dictionary_manual_3377988343.webp)
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);
Summary of Contents for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Page 1: ...Flash JavaScript Dictionary ...
Page 16: ...16 Contents ...
Page 40: ...40 Chapter 2 Top level functions ...
Page 368: ...368 Chapter 3 Objects ...