Objects within Fireworks documents
51
The following table lists the methods of the Group object, along with their parameters.
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.)
Property
Data type
Notes
Summary of Contents for FIREWORKS 8-EXTENDING FIREWORKS
Page 1: ...Extending Fireworks ...
Page 4: ...4 Contents ...
Page 358: ...358 Fireworks JavaScript API ...
Page 372: ...372 Index ...