MACROMEDIA FIREWORKS 8-EXTENDING FIREWORKS Manual page 199

Table of Contents

Advertisement

dom.importFile()
Availability
Fireworks 3.
Usage
dom.importFile(fileURL, boundingRectangle, bMaintainAspectRatio)
Arguments
The filename of the file to be imported, which is expressed as a file://URL.
fileURL
A rectangle that specifies the size to make the imported file (see
boundingRectangle
"Rectangle data type" on page
12). If
is specified with
boundingRectangle
left == right
and
, the file is brought in unscaled with its top-left corner at the specified
top == bottom
location, and the third argument is ignored.
If
is
, the file is scaled to the largest
bMaintainAspectRatio
bMaintainAspectRatio
true
size that fits within
while retaining the file's current aspect ratio. (This is
boundingRectangle
a handy option for creating thumbnails.) If it is
, the file is scaled to fill
false
.
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)
Document functions
199

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FIREWORKS 8-EXTENDING FIREWORKS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Fireworks 8

Table of Contents