# \[Help\] - Detecting highest depth object

**URL:** <https://forum.kirupa.com/t/help-detecting-highest-depth-object/329006>\
**Category:** Uncategorized\
**Created:** [July 12, 2012, 7:36pm UTC](https://forum.kirupa.com/t/help-detecting-highest-depth-object/329006 "2012-07-12T19:36:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![EndoMatrix](https://avatars.discourse-cdn.com/v4/letter/e/5daacb/32.png) [@EndoMatrix](https://forum.kirupa.com/u/EndoMatrix)\
**Post date:** [July 12, 2012, 7:36pm UTC](https://forum.kirupa.com/t/help-detecting-highest-depth-object/329006/1 "2012-07-12T19:36:35Z")

</div>

Hi, I have recently attempted to create a game using AS3, which works in a similar way to Pick-up-Sticks. As the objective is to select the “Stick” on the top of a stack, I am attempting to use the depth of each object to work out which sticks are at the top.

Unfortunately, I haven’t found a suitable solution to this issue. I understand the basic concepts of AS3 and it’s use of Index to replace Depth, but I have little experience with the language.

Any help would be appreciated, thanks! 🙂
