# This.getNextHighestDepth(); problem :(

**URL:** <https://forum.kirupa.com/t/this-getnexthighestdepth-problem/331557>\
**Category:** Uncategorized\
**Created:** [August 28, 2013, 2:19pm UTC](https://forum.kirupa.com/t/this-getnexthighestdepth-problem/331557 "2013-08-28T14:19:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theicecube92](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@theicecube92](https://forum.kirupa.com/u/theicecube92)\
**Post date:** [August 28, 2013, 2:19pm UTC](https://forum.kirupa.com/t/this-getnexthighestdepth-problem/331557/1 "2013-08-28T14:19:02Z")

</div>

Hey guys,  
So I’m currently building a space shooter game but I have a problem with ‘depth’.  
I’ve found a cool tutorial here [_ **http://www.freeactionscript.com/2009/01/realistic-vertical-bitmap-smoke-trailer/** _](http://www.freeactionscript.com/2009/01/realistic-vertical-bitmap-smoke-trailer/) that I want to use in my game but I want my rocket to be in front of the smoke effect.

I have added this extra code:

```auto
my_mc = attachMovie("my_mc", "my_mc", this.getNextHighestDepth());
my_mc._x = Stage.width / 2
my_mc._y = Stage.height / 2

```

\*\*\*(my\_mc = the rocket)

* * *

but the _‘this.getNextHighestDepth();’_ doesn’t work.  
I’ve used lots of codes and alternatives but none proved to work!

Hope someone who is a :genius: can help me as I’m struggling with this problem for 2 days already! Ⓜ  
Thanks!
