18
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.
textures
array
Array of Texture objects that are available
for use in the document (for more
information, see
“Texture object”
on page 56
).
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 8.”
Property
Data type
Notes
Содержание FIREWORKS 8-EXTENDING FIREWORKS
Страница 1: ...Extending Fireworks ...
Страница 4: ...4 Contents ...
Страница 358: ...358 Fireworks JavaScript API ...
Страница 372: ...372 Index ...