252
Chapter 5: Fireworks JavaScript API
Arguments
docObject
A Document object that specifies the document that contains the layers to export
(see
“Document object” on page 13
). 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 13
). To export the current document, pass
null
.
PSDDocumentURL
The name of the Photoshop document to be created, which is expressed as a
file://URL.
Returns
A Boolean value:
true
if successful;
false
otherwise.
Description
Exports a Fireworks document as a Photoshop document.
Summary of Contents for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Page 1: ...Extending Fireworks...
Page 4: ...4 Contents...
Page 8: ...8 Chapter 1 Extending Fireworks Overview...
Page 102: ...102 Chapter 4 Auto Shapes...