Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: [flasher] Levels (Revised Depths section)
From: AndyA
Date: Fri, 23 Mar 2001 02:45:19 -0000

Revised Section:

Depth is order
--------------

When you do duplicate movieclip though you tell it three things:

duplicateMovieClip (original to copy from, new name, Depth)

Depth here, has nothing to do with level. Depth is about Z-ordering. When
you have lots of movieclips moving around, at times they are going to
overlap. The depth setting helps flash decide which of the movies should be
on top and which of the movies should be below others. The ones on the
highest Depths are always in front of the lower ones when presented on the
screen.

Sometimes, you'll want a movieclip that is up high on the top Depth to
suddenly go behind another movieclip lower down. This is when you use
swapDepths(). swapDepths() lets you play musical chairs with the movieclips,
so that the one you want to be on top, gets to be on top by swapping its
chair (depth) with another movieclip. Simple!

Only movieclips can swapDepths.




For some reaons (maybe because it's 3:30 am here... I put the word level in
that section a few times, which would only have served to confuse....

Apologies

Andy




[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]