EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 535

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MovieClip.swapDepths() 535
MovieClip.stopDrag()
Availability
Flash Player 5.
Usage
my_mc.stopDrag()
Parameters
None.
Returns
Nothing.
Description
Method; ends a MovieClip.startDrag() method. A movie clip that was made draggable with
that method remains draggable until a
stopDrag() method is added, or until another movie clip
becomes draggable. Only one movie clip is draggable at a time.
See also
MovieClip._droptarget
, MovieClip.startDrag(), stopDrag()
MovieClip.swapDepths()
Availability
Flash Player 5.
Usage
my_mc.swapDepths(depth)
my_mc.swapDepths(target)
Parameters
depth
A number specifying the depth level where my_mc is to be placed.
target A string specifying the movie clip instance whose depth is swapped by the instance
specified by my_mc. Both instances must have the same parent movie clip.
Returns
Nothing.
Description
Method; swaps the stacking, or z-order (depth level), of the specified instance (my_mc) with the
movie clip specified by the
target parameter, or with the movie clip that currently occupies the
depth level specified in the depth parameter. Both movie clips must have the same parent movie
clip. Swapping the depth level of movie clips has the effect of moving one movie clip in front of or
behind the other. If a movie clip is tweening when this method is called, the tweening is stopped.
For more information, see “Managing movie clip depths” on page 129.

Table of Contents

Related product manuals