User Guide

Document functions 157
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)
Arguments
fileURL
The name of the file to be imported into the library, which is expressed as a file://
URL.
bAddToDoc If bAddToDoc is true, the symbol is added to the library and an instance of the
symbol is inserted into the center of the document. If it is
false, the symbol is added only to
the library.
bAllowUI If bAllowUI is true, and fileURL is a Fireworks document that contains symbols,
then a dialog box lets the user specify which symbols to import from the external file. If it is
false, all the symbols in the external file are imported.
Returns
Nothing.
Description
Imports the specified external graphics file (for example, GIF, JPEG, or Fireworks document) into
the library of the document.
dom.importSymbolButNotAsAlias()
Availability
Fireworks MX.
Usage
dom.importSymbolButNotAsAlias(filepath, whichSymbol)
Arguments
filepath
The fileURL of the file that contains the symbol to be copied.
whichSymbol The index of the symbol within the document, which is specified in
the
filepath.
Returns
Nothing.