# Help with depth on flash 8

**URL:** <https://forum.kirupa.com/t/help-with-depth-on-flash-8/309168>\
**Category:** flash\
**Created:** [May 8, 2010, 3:24pm UTC](https://forum.kirupa.com/t/help-with-depth-on-flash-8/309168 "2010-05-08T15:24:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Izzart](https://avatars.discourse-cdn.com/v4/letter/i/b5ac83/32.png) [@Izzart](https://forum.kirupa.com/u/Izzart)\
**Post date:** [May 8, 2010, 3:24pm UTC](https://forum.kirupa.com/t/help-with-depth-on-flash-8/309168/1 "2010-05-08T15:24:24Z")

</div>

hi,

im having a problem with the depth of loading objects (movieclips)

i have 3 buttons on the stage (or within a movieclip on stage), and 3 objects (mc’s) in the library,  
now - How do I set the depth of an objects?

## i used on each button :

## [COLOR=Black]on(release){ var t:MovieClip = this.attachMovie(“Blue”,pop1,this.getNextHighestDepth()); t.\_x = 0; t.\_y = 134.5; }[/COLOR]

and still the objects stay the same, i want them to go on top of the other 2…

any one can help?
