User Guide

Document functions 199
dom.importFile()
Availability
Fireworks 3.
Usage
dom.importFile(fileURL, boundingRectangle, bMaintainAspectRatio)
Arguments
fileURL The filename of the file to be imported, which is expressed as a file://URL.
boundingRectangle A rectangle that specifies the size to make the imported file (see
“Rectangle data type” on page 12). If
boundingRectangle is specified with left == right
and
top == bottom, the file is brought in unscaled with its top-left corner at the specified
location, and the third argument is ignored.
bMaintainAspectRatio If bMaintainAspectRatio is true, the file is scaled to the largest
size that fits within
boundingRectangle while retaining the files current aspect ratio. (This is
a handy option for creating thumbnails.) If it is
false, the file is scaled to fill
boundingRectangle.
Returns
Nothing.
Description
Imports the specified file at the specified location.
Example
The following command imports the specified file and maintains its aspect ratio:
fw.getDocumentDOM().importFile("file:///C|/images/foo.psd", {left:25,
top:50, right:100, bottom:250}, true);
dom.importSymbol()
Availability
Fireworks 3.
Usage
dom.importSymbol(fileURL, bAddToDoc, bAllowUI)