User Guide

16 The Fireworks Object Model
height
integer Total height of the document, in pixels.
To find the bottom edge of the document,
use document.
top + document.height.
isDirty
Boolean Set to true if the document was modified
since the last ti me it was saved.
isPaintMode •
Boolean Set to true if the document is currently in
paint-mode editing,
false otherwise.
isSymbolDocument •
Boolean Set to true if the document is a Symbol or
Button document,
false if it is an ordinary
document. You might see this when looking
through the list of open documents and one
is a symbol-editing window.
isValid
Boolean Set to true if the document is open in
Fireworks;
false otherwise. (Occasionally
the JavaScript object that is associated
with a document lingers after the document
closes; this property lets you check for
that eventuality.)
lastExportDirectory
string The path to the last directory to which the
file was exported, which is expressed as
file://URL, or
null if the file was never
exported. For instance, if the document
was last exported to "
file:///files/
current/logo.gif"
, it returns "file:///
files/current"
.
lastExportFile
string The name that was used the last time the
file was exported, or
null if the file was
never exported. For instance, if the
document was last exported to
"file:///
files/current/logo.gif"
, it returns
"logo.gif".
layers •
array An array of Layer objects in the document
(for more information, see “Layer object”
on page 67).
left
integer Coordinate of the left edge of the
document, in pixels. To find the right edge
of the document, use
document.left +
document.width.
Property Data type Notes