User Guide
14 Chapter 2: The Fireworks Object Model
frameLoopingCount
integer –1 — don’t repeat
0 — repeat forever
> 0 — repeat this number of times
frames •
array Array of Frame objects in the document (see
“Frame object” on page 52).
gammaPreview
Boolean If set to true, the document should be
previewed in opposite-platform gamma.
If set to
false, the document colors
are unadjusted.
gradients •
array Array of Gradient objects that are available
for use in the document (see “Gradient
object” on page 53).
gridColor
string A color string that specifies the color of the
grid display (see “Color string data type”
on page 11).
gridOrigin
point Used to set the origin of the grid.
Corresponds to the point set when dragging
the ruler origin from the upper left of the
document when rulers are visible.
gridSize
point gridSize.x is the horizontal grid size;
gridSize.y is the vertical grid size.
guides •
object Guides object (see “Guides object”
on page 53).
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.)
Property Data type Notes