# getNextHighestDepth() problem

**URL:** https://forum.kirupa.com/t/getnexthighestdepth-problem/103213
**Category:** Uncategorized
**Created:** [March 3, 2004, 12:38am UTC](https://forum.kirupa.com/t/getnexthighestdepth-problem/103213 "2004-03-03T00:38:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![theMonitor](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@theMonitor](https://forum.kirupa.com/u/theMonitor)
#### Post date: [March 3, 2004, 12:38am UTC](https://forum.kirupa.com/t/getnexthighestdepth-problem/103213/1 "2004-03-03T00:38:15Z")

</div>

i have two movies, each with a movieclip on the \_root level and this line of actionscript on the main timeline:

trace (clipName.getNextHighestDepth());

the only problem is, in one movie the trace returns ‘0’ (as i expected), but in the other it returns ‘undefined’ - which is strange, because as far as i can tell, the movies are identical in all but the actual names of the clips (and the shapes they contain, but that shouldn’t make a difference).

i’ve uploaded the two movies in case anyone wants to take a look. i’m sure i’m overlooking something really simple but i can’t see why one getNextHighestDepth() returns ‘undefined’.

[test1.fla](http://www.swurl.org/gnhd_test1.fla)  
[test2.fla](http://www.swurl.org/gnhd_test2.fla)

thanks in advance

||| O ^ | + O ¬
