16
Chapter 2: The Fireworks Object Model
The pngText object
Fireworks maintains the following fields for use with the pngText object:
You can edit these or add your own fields, and they will be preserved across file saves.
The pngText object corresponds directly to the
'tEXt'
chunk of the document’s PNG structure.
Errors object
All
Errors
object properties are read-only strings that are used to simplify the localizing of
scripts. They return localized error messages appropriate to the specific error. For example, the
English version of Fireworks returns
"Memory is full."
for the
EOutOfMem
property.
resolution
float
Document resolution, in pixels per unit (see
resolutionUnits
). The range is 1 to 5000.
resolutionUnits
string
The units to be used with the
resolution
property. Acceptable values are
"inch"
and
"cm"
.
textures
•
array
Array of Texture objects that are available for
use in the document (see
“Texture object”
on page 44
).
top
integer
Coordinate of the top edge of the document,
in pixels. To find the bottom edge of the
document, use
document.top + document.height.
useMatteColor
Boolean
If set to
true
, the
matteColor
property is used
when exporting documents with transparent
backgrounds. If set to
false
, the
matteColor
property is ignored in this situation, and the
exported file is matted against the
document’s canvas color.
width
integer
The width of the document, in pixels. To find
the right edge of the document, use
document.left + document.width.
Field name
Value
CreationTime
The date and time the document was created.
Software
The software used to create the document. The current version of
Fireworks always sets this value to “Macromedia Fireworks MX 2004.”
Property
Data type
Notes
Содержание DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Страница 1: ...Extending Fireworks...
Страница 4: ...4 Contents...
Страница 8: ...8 Chapter 1 Extending Fireworks Overview...
Страница 102: ...102 Chapter 4 Auto Shapes...
Страница 284: ...284 Chapter 5 Fireworks JavaScript API...