Allora:

1 Frame - Timeline
a.swapDepths(10)

5 Frame - Timeline
trace(a.getDepth())
stop();

5 Frame - Bottone
on (release) {
gotoAndPlay(4);
}

La prima volta la trace mi restituisce il valore esatto, mentre la seconda mi da -16383!!!