SawpDepths how to keep symbol always on top

Whats the code for SawpDepths to keep a symbol always on the top?

i use:

this.swapDepths(99999);

not sure if there’s a better way.

yea, that’d be the best bet… other than of course writing out tonnes of script to detect what the highest level is, and then putting the symbol on top of the highest level… um, yea. :wink:

There is a function to get the highest depth… I will have a look for it.

Edit: Yep- getNextHighestDepth() will return the lowest depth to ensure being higher than the rest. It only works in mx 2004 though, I think.