User Guide
40 Chapter 2: The Fireworks Object Model
The following table lists the methods of the Element object, along with their parameters.
Group object
Group is a subclass of the base class Element and contains the following properties in addition to
those in Element (see “Element object” on page 39).
The following table lists the methods of the Group object, along with their parameters.
Method Parameter Definition
generateSmartShapeCode
root The root parameter is a string value that is
prefixed to each line of output.
Property Data type Notes
baseColors • array Array of color strings.
controlPoints • array Array of control points defined for the Auto
Shape object.
elements
array Array of Element objects in the group (see
“Element object” on page 39).
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 When an Auto Shape is transformed
(moved, rotated, or other manipulation), the
Auto Shape object does not contain the new
location until
group.globalToSmartShapeCoords()
changes the object to the new coordinates.