
stop() Global Function
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
802
|
ActionScript Language Reference
Arguments
target A string or reference indicating the path to the movie or movie clip instance
that should follow the mouse pointer (references to movie clips are converted
to paths when used in a string context).
lockCenter A Boolean indicating whether
target’s registration point should be centered
under the mouse pointer (
true) or dragged relative to its original location
(
false).
left A number specifying the minimum x-coordinate to the left of which
target’s
registration point cannot be dragged.
top A number specifying the minimum y-coordinate above which
target’s regis-
tration point cannot be dragged.
right A number specifying the maximum x-coordinate to the right of which
target’s registration point cannot be dragged.
bottom A number specifying the maximum y-coordinate below which
target’s regis-
tration point cannot be dragged.
Description
The startDrag() function causes target to follow the mouse pointer around in the Player
visually (known as dragging the clip). The movement of a dragged clip can be constrained
to a bounding box whose coordinates are provided as arguments to the startDrag() func-
tion. Bounding box coordinates are given relative to the canvas on which
target resides. If
that canvas is the main movie Stage, then ...