PDA

View Full Version : SawpDepths how to keep symbol always on top



dreamer
July 3rd, 2004, 11:25 PM
Whats the code for SawpDepths to keep a symbol always on the top?

bwh2
July 4th, 2004, 12:14 AM
i use:

this.swapDepths(99999);

not sure if there's a better way.

bodyvisual
July 4th, 2004, 12:26 AM
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. ;)

Dunga
July 4th, 2004, 02:01 PM
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.