Scenario:
The more Y value, the more "in front" a movie clip is.
So if I have two movie clips.
Movieclip1.y is 50
Movieclip2.y is 20
Then movieclip1 should be infront of movieclip2.
If
movieclip1.y = 20
movieclip2.y = 20
movieclip3.y = 56
movieclip4.y = 921
then
movieclip4 should be most in front movieclip3 should be second most in front and the two others should be on equal depth
something like
this.z = this.y?
But I have no idea how the code is.