User Guide
318 Fireworks JavaScript API
fw.exportLayers()
Availability
Fireworks 4.
Usage
fw.exportLayers(docObject, directoryURL)
Arguments
docObject A Document object that specifies the document that contains the layers to
export (see “Document object” on page 14). To export layers from the current document, pass
null.
directoryURL The directory in which the images will be placed, which is expressed as a
file://URL.
Returns
A Boolean value: true if successful; false otherwise.
Description
Exports a document’s layers as individual images. The image names are based on the names in
the Layers panel. The layers from the current frame are exported.
Example
The following command exports the layers in the third open document to the
C:\images directory.
fw.exportLayers(fw.documents[2], "file:///C|/images");
fw.exportPSD()
Availability
Fireworks 4.
Usage
fw.exportPSD(docObject, PSDDocumentURL)
Arguments
docObject A Document object that specifies the document to export (see “Document
object” on page 14). To export the current document, pass
null.
PSDDocumentURL The name of the Photoshop document to be created, which is expressed
as a file://URL.