startDrag()
Availability
Flash Player 4.
Usage
startDrag(target,[lock, left, top, right, bottom])
Parameters
The target path of the movie clip to drag.
target
A Boolean value specifying whether the draggable movie clip is locked to the center of the
lock
mouse position (
(
). This parameter is optional.
false
,
,
left
top
right
specify a constraint rectangle for the movie clip. These parameters are optional.
Returns
Nothing.
Description
Function; makes the
clip can be dragged at a time. Once a
draggable until explicitly stopped by
movie clip is called.
Example
To create a movie clip that users can position in any location, attach the
actions to a button inside the movie clip.
stopDrag()
on(press) {
startDrag(this,true);
}
on(release) {
stopDrag();
}
See also
MovieClip._droptarget
), or locked to the point where the user first clicked on the movie clip
true
,
Values relative to the coordinates of the movie clip's parent that
bottom
movie clip draggable while the movie is playing. Only one movie
target
startDrag()
stopDrag()
,
MovieClip.startDrag()
operation is executed, the movie clip remains
, or until a
startDrag()
,
stopDrag()
action for another
and
startDrag()
startDrag()
645
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers