title: AS3 Child Index in relation to Stage
body: <p>I m currently moving my CPU image post processing frame from AS2 to AS3. I used an array to handle all the objects that need to be rendered each frame.
  I sort the array by the object's depth on _root, and then render them all onto one bitmapdata in order to draw them in the correct order.</p>
  
  <p>In my AS3 game project I used displayobjectcontainers to handle "depths". for example I have multiple movieclips acting as containers on MovieClip(root), and then add the child to those movieclips to sort them. I also have other child containers inside those containers, forming an hierarchy. </p>
  
  <p>But now I find it hard to sort the render list array because I cannot simply input an absolute "depth" value for the object. I use parent.getChildIndex, but this just gives me the index of the child in one of those containers. </p>
  
  <p>Ofcourse you can make a big function and finally sort the array, but is there anyway to give the object's absolute index in relation to the root/stage?</p>
  
  <p>Thanks a lot.</p>