User Guide
178 Fireworks JavaScript API
dom.distributeLayerToFrames()
Availability
Fireworks 3.
Usage
dom.distributeLayerToFrames(layerIndex)
Arguments
layerIndex An integer value that specifies the layer that contains the items to be
distributed, starting with
0 (although, to specify the current layer, pass –1 here).
Returns
Nothing.
Description
Distributes the items on the specified layer to the frames of the document, adding frames if
necessary. The first item on the layer goes to the first frame, the second item to the second
frame, and so on. New frames are added to the document, if necessary. If there is only one
item in the specified layer, this function has no effect.
dom.distributeSelectionToFrames()
Availability
Fireworks 3.
Usage
dom.distributeSelectionToFrames()
Arguments
None.
Returns
Nothing.
Description
Distributes the selected items to the frames of the document, adding frames if necessary. The
first item goes to the current frame, the second item to the next frame, and so on. If only one
item is selected, this function has no effect.