PDA

View Full Version : setting the depth of a movieclip


smcs
08-28-2003, 06:48 AM
hi all,

can anyone tell me if there is a way, when you are adding a movieclip to your movie, to make sure it appears above all the other movieclips that are already in the movie?

something that would check the depth of all the current movieclips, then set my new movieclip to 1 higher.

thanks in advance.
steven.

senocular
08-28-2003, 07:56 AM
you can using getDepth() and swapDepths() on movieclips