Web DevCenter oreilly.comSafari Books Online.Conferences.
Sponsored Developer Resources  Web Columns Adobe GoLive
Essential JavaScript  Web Topics All Articles Scripting
Languages  Atom 1.0 Feed RSS 1.0 Feed RSS 2.0 Feed  Learning Lab
Cooking with ActionScript Pages: 1, 2, 3  Recipe 7.11: Getting
Unique Depths   You want to easily ensure that you always get a
unique depth when creating a new movie clip using
createEmptyMovieClip( ), attachMovie( ), or duplicateMovieClip(
).   Create and use a custom MovieClip.getNewDepth( ) method.
Only one movie clip can exist at each depth within a parent
clip, so if you specify an existing depth when using
createEmptyMovieClip( ), attachMovie( ), or duplicateMovieClip(
), the movie clip already on that depth is overwritten. Unless
you want to overwrite an existing movie clip, you must always
use a unique depth when using these methods.  ActionScript does
not provide native support for generating a unique movie clip
depth. You must keep track of all the used depths your