Could someone tell me why this doesnt work? (swapDepth)

could someone help me to figure out this, and how to code this correctly, it’s probably something simple though right now I can’t figure it out!

I want the circle to swapdepth with the box when the circle._y is behind the box._y

steer the circle with the arrow keys, the actions are in the first frame of each movie clip.

thanx in advance

I downloaded the .fla and when tested it does nothing.

All I see is script that reads:
_global.speed = 10;

I see no code on the two shape mc’s and no overview of the desired action. Please post more description of desired interaction and I will see what I can do.

–jmac


http://www.kirupa.com/developer/actionscript/swapdepth.htm

I want the circle to swapdepth with the box when the circle._y is behind the box._y

steer the circle with the arrow keys, the actions are in the first frame of each movie clip.