# \[AS3\]Need help with depth sorting in tile based game!

**URL:** <https://forum.kirupa.com/t/as3-need-help-with-depth-sorting-in-tile-based-game/271366>\
**Category:** programming\
**Created:** [September 22, 2008, 9:15am UTC](https://forum.kirupa.com/t/as3-need-help-with-depth-sorting-in-tile-based-game/271366 "2008-09-22T09:15:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluemagica](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@bluemagica](https://forum.kirupa.com/u/bluemagica)\
**Post date:** [September 22, 2008, 9:15am UTC](https://forum.kirupa.com/t/as3-need-help-with-depth-sorting-in-tile-based-game/271366/1 "2008-09-22T09:15:36Z")

</div>

i have a few questions, which i need solutions to, and these i didnt find in tonypa’s tutorials! Oh and these are for as3!

1)How do i create a large map in parts, so that it dosent lag?  
2)How do i sort depth of multiple instances at runtime ? I need something of the type of swapping depth based on y axis in as2! the closest function i could find is the swapChildren() function, but i dont know how to implement it in this scenario!
