# Managing depth in actionscript3

I have a 3D field with many MovieClips in it, and seems like the one last added is the one that overlaps others and not the one with highest z value.
Is there any property/function that sets z-index? (sorting children by z value seems too much like a hack).
A 3D engine that can place MovieClips will be helpful(but not one that requires custom drawing).
I'm using Flash CS5 with ActionScript 3

You need this helper class:

http://blog.theflashblog.com/?p=470

• Can you expand on the answer a little bit? – funwhilelost Aug 3 '10 at 18:32