.swapDepths

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

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.

Cool cool, that’s pretty much what I figured
thanks a lot:)

There’s a tutorial… :trout:

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?

See the big white box at the top of the screen, and there is a little gray button next to it that says search? :wink:

http://www.kirupa.com/developer/actionscript/swapdepth.htm

type “SWAPDEPTH” in and you get that tutorial…

heres some more information on depths

http://www.flashkit.com/board/showthread.php?s=&threadid=431023

sorry…sorry…
ill use the search from now on…

http://www.kirupa.com/developer/actionscript/swapdepth.htm

…heh

im stupid

sorry everyone