Document Functions - Adobe 38039927 - Fireworks CS3 - PC Extended User Manual

Extending fireworks
Hide thumbs Also See for 38039927 - Fireworks CS3 - PC:
Table of Contents

Advertisement

Property
top
useMatteColor
width
The pngText property
Fireworks maintains the following fields for use with the pngText property:
Field name
Value
The date and time the document was created.
CreationTime
The software used to create the document. The current version of Fireworks always
Software
sets this value to "Adobe Fireworks CS3. "
You can edit these or add your own fields, and they will be preserved across file saves.
The pngText object corresponds directly to the

Document functions

As discussed in an earlier section, you get and set document properties by calling functions as methods of the
document's Document Object Model (DOM) (see "Accessing a Fireworks document" on page 4). Methods that
operate on a document's DOM are listed in this section as
. In place of dom, you must type
dom.functionName()
fw.documents[documentIndex]
• How a function looks in this manual:
• How you must type it:
fw.getDocumentDOM().addNewHotspot(); // operates on active document
or
fw.documents[documentIndex].addNewHotspot(); // operates on specified document
dom.addBehavior()
Availability
Fireworks 3.
Usage
dom.addBehavior(action, event, eventIndex)
Data type
Notes
integer
Coordinate of the top edge of the document, in
pixels. To find the bottom edge of the document, use
document.top + document.height.
Boolean
If set to
true
when exporting documents with transparent back-
grounds. If set to
erty is ignored in this situation, and the exported file
is matted against the document's canvas color.
integer
The width of the document, in pixels. To find the right
edge of the document, use
document.width.
chunk of the document's PNG structure.
'tEXt'
dom.functionName()
fw.getDocumentDOM()
. For example:
dom.addNewHotspot()
, the
matteColor
property is used
false
, the
matteColor
document.left +
. However, you cannot simply type
or
ADOBE FIREWORKS CS3
Extending Guide
prop-
23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs3

Table of Contents