View Full Version : .swapDepths
nobody
March 14th, 2003, 03:01 PM
Hey, this isn't really a question about anything in particular, but can anyone explain to what .swapDepths does?
or more generally, just swapping in general, if there other swaps.
I just want to fully grasp some stuff.. so I want to understand it better.
Thanks a lot
Sorcerer
March 14th, 2003, 03:13 PM
Basically it just swaps the level something is in with something else changing which is in front of the other.
MovieClip.swapDepths
Availability
Flash Player 5.
Usage
myMovieClip.swapDepths(depth)
myMovieClip.swapDepths(target)
Parameters
target The movie clip instance whose depth is swapped by the instance specified in myMovieClip. Both instances must have the same parent movie clip.
depth A number specifying the depth level where MovieClip is to be placed.
Returns
Nothing.
Description
Method; swaps the stacking, or z order (depth level), of the specified instance (MovieClip) with the movie specified by the target parameter, or with the movie that currently occupies the depth level specified in the depth parameter. Both movies must have the same parent movie clip. Swapping the depth level of movie clips has the effect of moving one movie in front of or behind the other. If a movie is tweening when this method is called, the tweening is stopped.
nobody
March 14th, 2003, 03:15 PM
Cool cool, that's pretty much what I figured
thanks a lot:)
pom
March 14th, 2003, 03:23 PM
There's a tutorial... :trout:
nobody
March 14th, 2003, 03:28 PM
where?
I think I was doin your tutorial on perspective, that's where I was wondering about it, so I can understand it better.
That is your tutorial right?
Jubba
March 14th, 2003, 04:07 PM
See the big white box at the top of the screen, and there is a little gray button next to it that says search? ;)
http://www.kirupa.com/developer/actionscript/swapdepth.htm
type "SWAPDEPTH" in and you get that tutorial...
senocular
March 14th, 2003, 04:38 PM
heres some more information on depths
http://www.flashkit.com/board/showthread.php?s=&threadid=431023
nobody
March 14th, 2003, 08:56 PM
sorry..sorry..
ill use the search from now on..
nobody
March 14th, 2003, 10:23 PM
http://www.kirupa.com/developer/actionscript/swapdepth.htm
...heh
im stupid
sorry everyone
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.