# AS3 Depth Sorting

**URL:** <https://forum.kirupa.com/t/as3-depth-sorting/290424>\
**Category:** flash\
**Created:** [June 14, 2009, 7:00pm UTC](https://forum.kirupa.com/t/as3-depth-sorting/290424 "2009-06-14T19:00:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScarsOfDracula](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@ScarsOfDracula](https://forum.kirupa.com/u/ScarsOfDracula)\
**Post date:** [June 14, 2009, 7:00pm UTC](https://forum.kirupa.com/t/as3-depth-sorting/290424/1 "2009-06-14T19:00:47Z")

</div>

Forgive me if this question is kind of remedial. I am new to AS3 but familiar with methods of controlling depth sorting in AS2. The display list makes some sense to me, and I can see the obvious advantages, but I’m really hoping to see some pseudo code example of how to manage depth sorting. Any help would be greatly appreciated.

Thanks very much!

Not that this helps, but the old way simply used the y position of each object, multiplied that by the number of objects in the field, and added each object’s unique number. The object was sorted to the resulting depth level. I realize that this doesn’t really apply to the display list in AS3.
