Adobe 65011817 - Fireworks CS4 - Mac Extended User Manual page 209

Extending guide
Hide thumbs Also See for 65011817 - Fireworks CS4 - Mac:
Table of Contents

Advertisement

Last updated 12/8/2009
Returns
A Boolean value:
if successful;
true
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.exportMXMLAndImages()
Availability
Fireworks 9.
Usage
fw.exportMXMLAndImages(doc, htmlUrl, imagesUrl)
Arguments
A Document object that specifies the document to be exported (see
doc
, the active document is exported.
null
The filename of the exported MXML file, which is expressed as a file://URL. If htmlUrlis
htmlUrl
generated.
The name of the file containing the exported image(s), which is expressed as a file://URL, and might not
imagesUrl
be
. If a single image is generated, this function uses imagesUrl as the name of the image file. If multiple sliced
null
images are exported, it uses imagesURL to generate automatically named images, and all images are placed in this
directory.
Returns
A Boolean value:
if successful;
true
Description
Exports one image if the document contains no slice objects and multiple images if the document contains one or more
slice objects. It also optionally exports MXML. The document is exported using the current export settings and export
options.
Example
The following command exports the current document as HTML and as one or more images.
fw.exportMXMLAndImages(null, "file:///C|/mysite/nav.htm",
"file:///C|/mysite/images/nav.gif");
See also
fw.exportDocumentAs()
otherwise.
false
otherwise.
false
EXTENDING FIREWORKS
"The Document
object" on page 27). If doc is
205
The Fireworks Object
, no MXML is
null

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs4

Table of Contents