268
Chapter 5: Fireworks JavaScript API
fw.saveDocumentCopyAs()
Availability
Fireworks 3.
Usage
fw.saveDocumentCopyAs(
document
,
fileURL
)
Arguments
document
A Document object, for example,
fw.documents[2]
, that specifies the document to
be saved. If
document
is
null
, the active document is saved.
fileURL
The filename for the saved file, which is expressed as a file://URL. If
fileURL
is
null
,
the Save As dialog box appears.
Returns
The file URL for the saved document, or
null
if the dialog box was canceled.
Description
Saves a copy of the specified document as a native Fireworks PNG file with the specified name.
To save a document to another format, such as GIF or JPEG, use
fw.exportDocumentAs().
See also
fw.exportDocumentAs()
fw.saveJsCommand()
Availability
Fireworks 3.
Usage
fw.saveJsCommand(
jscode
,
filename
)
Arguments
jscode
The string of code to be saved as a JSF command file.
filename
The name under which the file should be saved. If
filename
is not a file URL (that
is, if it does not begin with
"file:///"
), the file is saved in the Fireworks MX/Configuration/
Commands folder.
Returns
Nothing.
Description
Saves the specified string of JavaScript code as a JSF command file.
Содержание DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Страница 1: ...Extending Fireworks...
Страница 4: ...4 Contents...
Страница 8: ...8 Chapter 1 Extending Fireworks Overview...
Страница 102: ...102 Chapter 4 Auto Shapes...
Страница 284: ...284 Chapter 5 Fireworks JavaScript API...