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.
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.