Macromedia fireworks mx 2004-extending fireworks 用户手册

下载
页码 296
186
Chapter 5:  Fireworks JavaScript API
dom.saveCopyAs()
Availability
Fireworks 3.
Usage
dom.saveCopyAs(fileURL)
Arguments
fileURL
  A string, which is expressed as a file://URL, that specifies the directory and name 
under which the copy should be saved. 
Returns
true
 if the save operation is successful; 
false
 otherwise.
Description
Saves a copy of the document in a specified directory with a specified name. This function does 
not affect the document’s 
filePathForSave
 or 
isDirty
 properties.
dom.saveJPEGMask()
Availability
Fireworks 4.
Usage
dom.saveJPEGMask()
Arguments
None.
Returns
Nothing.
Description
Stores the current selection in bitmap mode as the “Selective JPEG mask”. Use 
dom.restoreJPEGMask()
 to restore the JPEG mask.
See also
dom.saveSelection()
Availability
Fireworks 4.
Usage
dom.saveSelection()
Arguments
None.