User Guide

162 Chapter 5: Fireworks JavaScript API
Description
Links or unlinks the element mask on the selected element. If more than one element (or no
elements) are selected when this function is called, Fireworks throws an exception. An exception is
also thrown if the element has no element mask.
dom.makeFind()
Availability
Fireworks 3.
Usage
dom.MakeFind(findSpec)
Arguments
findSpec
A Find object (see “Find object” on page 20).
Returns
A Find object.
Description
Creates an object of class Find to perform a search-and-replace operation in a document.
dom.makeGoodNativeFilePath()
Availability
Fireworks 3.
Usage
dom.makeGoodNativeFilePath(fileURL)
Arguments
fileURL
The name of the file, which is expressed as a file://URL, whose extension should be
changed to .png.
Returns
A string that contains the file URL with a .png extension.
Description
Ensures that the specified file URL ends in a .png extension. Does not affect the name of the file
on disk.
Example
The following command returns "file:///My Documents/image01.png".
fw.getDocumentDOM().makeGoodNativeFilePath("file:///My Documents/image01.png")