# Help with .getDepth()

**URL:** <https://forum.kirupa.com/t/help-with-getdepth/85727>\
**Category:** flash\
**Created:** [April 7, 2005, 12:20am UTC](https://forum.kirupa.com/t/help-with-getdepth/85727 "2005-04-07T00:20:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymus](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Anonymus](https://forum.kirupa.com/u/Anonymus)\
**Post date:** [April 7, 2005, 12:20am UTC](https://forum.kirupa.com/t/help-with-getdepth/85727/1 "2005-04-07T00:20:47Z")

</div>

I’m trying to use .getDepth() but it returns nothing. :S

```auto
 if (this.getDepth() < _root.blocks.getDepth()) { 

```

Is this the right way to do this?
