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 Document functions.
| Property | Data type | Notes |
|---|---|---|
backgroundColor |
string |
A color string that specifies the document canvas color (for more information, see Color string data type). |
backgroundURL |
string |
Sets a general URL for a document that uses a Hotspot. Everything that is not covered by the Hotspot has the background URL. |
brushes • |
array |
Array of Brush objects that are available for use in the document (for more information, see Brush object). |
currentFrameNum |
zero-based index |
The index of the current frame. |
currentLayerNum |
zero-based index |
The index of the current layer. |
defaultAltText |
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. |
docTitleWithoutExtension |
string |
The title of the document file, without any file extension. If the document has not been saved, this string is empty. |
exportFormatOptions |
object |
Identical to |
exportOptions |
object |
ExportOptions object (for more information, see ExportOptions object). |
exportSettings |
object |
ExportSettings object (for more information, see ExportSettings object). |
filePathForRevert |
string |
The path to the file from which this document was opened, which is expressed as file://URL, or |
filePathForSave |
string |
The location to which this document was saved, which is expressed as file://URL, or |
fills • |
array |
Array of Fill objects that are available for use in the document (for more information, see Fill object). |
frameCount |
integer |
The number of frames in the current document. |
frameLoopingCount |
integer |
-1 -- don't repeat 0 -- repeat forever > 0 -- repeat this number of times |
frames • |
array |
Array of Frame objects in the document (for more information, see Frame object). |
gammaPreview |
Boolean |
If set to |
gradients • |
array |
Array of Gradient objects that are available for use in the document (for more information, see Gradient object). |
gridColor |
string |
A color string that specifies the color of the grid display (for more information, see Color string data type). |
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 |
|
guides • |
object |
Guides object (for more information, see Guides object). |
height |
integer |
Total height of the document, in pixels. To find the bottom edge of the document, use document.
|
isDirty |
Boolean |
Set to |
isPaintMode • |
Boolean |
Set to |
|
Boolean |
Set to |
isValid |
Boolean |
Set to |
lastExportDirectory |
string |
The path to the last directory to which the file was exported, which is expressed as file://URL, or |
lastExportFile |
string |
The name that was used the last time the file was exported, or |
|
array |
An array of |
left |
integer |
Coordinate of the left edge of the document, in pixels. To find the right edge of the document, use |
mapType |
string |
Acceptable values are |
matteColor |
string |
A color string that corresponds to the matte color specified in the Optimize panel (for more information, see Color string data type). This string is used by the |
onionSkinAfter |
integer |
Number of frames after the current frame to show through onion skinning. Corresponds to the onion-skin controls in the left edge of the Frames panel. A value of |
onionSkinBefore |
integer |
Similar to the |
patterns • |
object |
List of internal pattern names. |
pathAttributes |
object |
PathAttrs object (for more information, see PathAttrs object). This object specifies default attributes that will be applied to all newly created objects. |
pngText |
object |
A structure that can be used to store various chunks of text in a well-known format. For more information, see The pngText object. |
resolution |
float |
Document resolution, in pixels per unit (for more information, see |
resolutionUnits |
string |
The units to be used with the |
savedSelections |
object |
Array of the saved bitmap selections in the active document. |
|
array |
Array of Texture objects that are available for use in the document (for more information, see Texture object). |
top |
integer |
Coordinate of the top edge of the document, in pixels. To find the bottom edge of the document, use |
useMatteColor |
Boolean |
If set to |
width |
integer |
The width of the document, in pixels. To find the right edge of the document, use |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/fireworks/8/fwextending/fw_02_16.htm