|
|
timeline.reorderLayer()
AvailabilityFlash
MX 2004.
Usagetimeline.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.
DescriptionMethod;
moves the first specified layer before or after the second specified
layer.
ExampleThe
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);
|