60
Chapter 2: The Fireworks Object Model
SmartShape object
The following table lists the properties of the SmartShape object, along with their data types and,
where appropriate, acceptable values and notes.
Property
Data type
Notes
altOptKeyDown
•
Boolean
Indicates whether the Alt/Option key is
pressed (
true
if pressed, otherwise
false
).
constrainDragInsertAspect
Boolean
Determines if, while dragging a shape on the
canvas, the aspect ratio is constrained (
true
if constrained, otherwise
false
).
constrainDragInsertAspectKey
string
The key value that will cause the
aspect ratio to be constrained during a
DragInsert
operation.
ctrlCmdKeyDown
•
Boolean
Indicates whether the Control/Command key
is pressed (
true
if pressed, otherwise
false
).
currentControlPoint
•
object
Returns the current control point object.
currentControlPointIndex
•
integer
Returns the index number of the current
control point.
currentControlPointName
•
string
Returns the name of the current
control point.
currentMousePos
point
Location of the mouse during the current
drag message.
elem
•
object
Objects defined as part of the current
Auto Shape.
getsDragEvents
Boolean
Sets notification for drag events (
true
notifies the smartshape for every mouse
movement,
false
sets no notification).
livePreview
Boolean
Sets live preview. A value of
true
enables
live preview, and disables wire-frame
preview handled by Fireworks. Live preview
is slower than wire-frame preview.
If you want the user to set this value, write a
function handling the DragControlPoint
message from Fireworks (see
“Fireworks
messages” on page 98
.
mouseDownPos
•
point
Location of the mouse during a mouse click.
operation
•
string
Message received from Fireworks, see
“Fireworks messages” on page 98
for
possible messages.
prevMousePos
•
point
Location of the mouse at the previous
drag message.
shiftKeyDown
•
Boolean
Indicates whether the Shift key is pressed.
Summary of Contents for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Page 1: ...Extending Fireworks...
Page 4: ...4 Contents...
Page 8: ...8 Chapter 1 Extending Fireworks Overview...
Page 102: ...102 Chapter 4 Auto Shapes...