Document object
The following table lists the properties of the Document object, along with their data types,
acceptable values and notes. Read-only properties are marked with a bullet (•). You can also use
many API calls to work with documents. For more information, see
on page
104.
Property
backgroundColor
backgroundURL
brushes •
currentFrameNum
currentLayerNum
defaultAltText
docTitleWithoutExtension
exportFormatOptions
exportOptions
exportSettings
filePathForRevert
filePathForSave
fills •
frameCount
Data type
Notes
string
A color string that specifies the document
canvas color (see
on page
string
Sets a general URL for a document that uses
a Hotspot. Everything that is not covered by
the Hotspot has the background URL.
array
Array of Brush objects that are available for
use in the document (see
on page
zero-based index The index of the current frame.
zero-based index The index of the current layer.
string
Default Alt text for the output images. It
works for single and sliced images. Sliced
images get the default, unless specific text is
specified for a slice. Corresponds to the text
that is specified in File > HTML Properties >
ImageMap > AltImageDescription.
string
The title of the document file, without any file
extension. If the document has not been
saved, this string is empty.
object
Identical to
backward compatibility with Fireworks 2.
object
ExportOptions object (see
object" on page
object
ExportSettings object (see
object" on page
string
The path to the file from which this document
was opened, which is expressed as file://
URL, or
string
The location to which this document was
saved, which is expressed as file://URL, or
null
array
Array of Fill objects that are available for use
in the document (see
on page
integer
The number of frames in the
current document.
"Document functions"
"Color string data type"
11).
"Brush object"
26).
. Included for
exportOptions
"ExportOptions
46).
"ExportSettings
49).
if created from scratch.
null
if never saved.
"Fill object"
51).
Core objects
13
Need help?
Do you have a question about the FIREWORKS MX 2004-EXTENDING FIREWORKS and is the answer not in the manual?
Questions and answers