249
EXTENDING FIREWORKS
Objects within Fireworks documents
Las
t
up
d
a
ted
12/8/2009
The following table lists the methods of the Group object, along with their parameters.
Image object
Image is a subclass of the base class Element (for more information, see “
Element object
” on page 247). It contains no
properties or methods other than those in Element.
Instance object
Instance is a subclass of the base class Element and contains the following properties in addition to those in Element
(for more information, see “
Element object
” on page 247). Read-only properties are marked with a bullet (•).
groupType
string
Acceptable value is
"normal"
. (
"mask to image"
and
"mask to path"
were deprecated in Fireworks MX.)
smartShapeCode
string
The body of code in the JavaScript file that defines the Auto
Shape object.
transformMode
string
Can be one of the following:
"AlwaysTransform"
If the
Auto Shape is transformed in any way (scale, skew, rotate) the
transformation matrix is modified.
“DontTransformUniformScale” If the Auto Shape is scaled in
uniformly, the actual points are moved; otherwise, the
transformation matrix is modified.
“DontTransformAnyScale” If the Auto Shape is scaled (even
nonuniformly), the actual points are moved; otherwise, the
transformation matrix is modified.
Method
Parameter
Definition
generateSmartShapeCode()
string
Generates JavaScript code for creating an Auto Shape. You can
specify a string to prefix each line of output.
globalToSmartShapeCoords()
point
Changes an object to the new coordinates after an Auto Shape
is transformed (scaled, skewed, or rotated) so that the Auto
Shape object contains the new location.
RegisterForEvent()
string
Call this to receive notification of the string specifying a
Fireworks event.
smartShape.operation
will be the name
of the event triggered.
Returns the total number of events registered after adding the
specified event.
removeTransformation()
none
Undoes the previous transformation.
smartShapeToGlobalCoords()
point
Converts a transformed (scaled, skewed, or rotated)
SmartShape object’s space into global space. (For more
information, see
globalToSmartShapeCoords()
above.)
unRegisterAllEvents()
none
Call this to stop receiving notification of all previously
registered events.
UnRegisterForEvent()
string
Call this to stop receiving notification of a single previously
registered event.
Property
Data type
Notes