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 file’s 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
)
Содержание FIREWORKS 8-EXTENDING FIREWORKS
Страница 1: ...Extending Fireworks ...
Страница 4: ...4 Contents ...
Страница 358: ...358 Fireworks JavaScript API ...
Страница 372: ...372 Index ...