Macromedia fireworks mx 2004-extending fireworks User Manual

Page of 296
Fireworks functions
265
Returns
The number of items that are replaced, or 
–1
 if there are items in the document that remain to 
be searched.
Description
Verifies that the selection matches the current search string and replaces it with the 
replacement string. 
See also
fw.replaceAll()
Availability
Fireworks 3.
Usage
fw.replaceAll()
Arguments
None.
Returns
The number of items replaced, or 
–1
 if the search is not yet complete.
Description
Performs a replace all operation on the active document using the current 
search-and-replacement strings. 
See also
fw.revertDocument()
Availability
Fireworks 3.
Usage
fw.revertDocument({document})
Arguments
document
  A Document object, for example, 
fw.documents[2]
, that specifies the document 
to be reverted. This argument is optional. If 
document
 is omitted or 
null
, the active document 
is reverted.