ecco un esempio del mio codice, è troppo semplice, è ovvio ch emanca qualcosa...sapere cosa però!!
Il giallo_mc è il foglio che sta in mezzo, mentre il rosa è quello che sta sopra.

_root.giallo_mc.onRelease = function()
{
this.gotoAndPlay(2);//parte l'animazione del foglio
var depth:Number = rosa_mc.getDepth();
if(this._currentframe ==10)//è il frame intermedio
nell'animazione
{
this.swapDepths(depth);
}

}