I’m using this code:
on(press){
_root.myDepth++;
_parent.swapDepths(_root.myDepth);
}
and it works fine but it keeps sends it above the other higher layers on my scene, How can I prevent this?
by setting an initial value for myDepth as somewhere near the start of the depths range (think its about -16,000 as opposed to the initial value it will automatically create with that script, 0 (which is above about 16,000 other layers ;))
do a search for the range, sen posted them in flash mx limitations thread somewhere
or use a trace for _parent.getDepths()
Prophet.