all groups > flash actionscript > july 2004 >
You're in the

flash actionscript

group:

swapDepths question


swapDepths question yoyoyoyoyoyoyoyok
7/30/2004 8:45:52 PM
flash actionscript:
Is there a command for "always on top"? I am creating a game and as I add elements it is becoming very labourous to change the levels of certain MCs

Re: swapDepths question christophe.herreman
7/31/2004 9:42:56 AM
Hi,

you can use the getNextHighestDepth() method for that. (mx2004)
Look for it in the help.

Re: swapDepths question onlinebuddy
8/2/2004 8:41:21 PM
in Flash 5 you don't have to pick the next available depth, you can set the
depth of your 'top' object to a number you know will be safe. Perhaps you could
say _root.swapDepths("myMovie",1000) knowing nothing will interfere with a
level that high. I've done this with a Pacman game, where I know the characters
have to be on top of the dots, but where I don't always know how many dots
there will be.


AddThis Social Bookmark Button