MACROMEDIA FIREWORKS 8-EXTENDING FIREWORKS Manual page 128

Table of Contents

Advertisement

Function
DragInsert()
EndDragInsert()
BeginDragControlPoint()
DragControlPoint()
EndDragControlPoint()
SmartShapeEdited()
128
Auto Shapes
Description
This function is called every time the mouse moves during a drag
operation (as long as
See
"SmartShape object" on page 75
This function is called on a mouse-up event after a drag operation.
Tells Fireworks what to do when the user clicks and holds the
mouse button on a control point. Fireworks can change the object
as the user moves the mouse (for example, using the
RegisterMove method of the SmartShape object; for more
information about how to get the properties of a smartShape
object, see
"ContourNode object" on page
mouse event to change the object.
The following example uses the RegisterMove method to set the
properties for the object on the mouse-down event so that the user
can preview changes during the drag operation:
function BeginDragControlPoint()
{
switch (smartShape.currentControlPointIndex) {
case 0:
var parms = smartShape.GetDefaultMoveParms();
smartShape.elem.controlPoints[0].RegisterMove(parms);
smartShape.elem.elements[0].contours[0].nodes[0].RegisterMov
e(parms);
break;
}
}
This function is called every time the mouse moves during a drag
operation. Fireworks can change the object as the user moves the
mouse or wait until the mouse event ends to change the object.
If the
BeginDragControlPoint()
other points, Fireworks will not call the
function.
Tells Fireworks how to draw the final Auto Shape, after a drag
operation is complete. If Fireworks handled shape changes
through the
BeginDragControlPoint()
the end result of that function as a starting point. In that case, the
code need not reflect every change in shape, but just the changes
that aren't handled by
This function is called when any changes have been made to the
Auto Shape that might change the shape's behavior (such as
removing a node inside an Auto Shape object).
smartshape.getsDragEvents
.
function specifies control points or
DragControlPoint()
function, then you can use
BeginDragControlPoint()
is set to
).
true
37), or wait until after a
.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FIREWORKS 8-EXTENDING FIREWORKS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Fireworks 8

Table of Contents