title: as3-manipulating z-index dynamically
body: <p>So I have trouble with the z-index,
  all of my objects have z-index of 0, and as new objects are created they come above the ones that need to be in front.
  I know about setting z index commands, but if I have 50 objects, I have to write and manually set z-index for each one, witch is kinda lame.
  How can I fix this? This is probably simple but Im new to AS3.</p>