# Using attachMovie to put something above a LoadClip movie

**URL:** <https://forum.kirupa.com/t/using-attachmovie-to-put-something-above-a-loadclip-movie/290456>\
**Category:** Uncategorized\
**Created:** [June 15, 2009, 10:58am UTC](https://forum.kirupa.com/t/using-attachmovie-to-put-something-above-a-loadclip-movie/290456 "2009-06-15T10:58:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![onion](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/onion/32/3349_2.png) [@onion](https://forum.kirupa.com/u/onion)\
**Post date:** [June 15, 2009, 10:58am UTC](https://forum.kirupa.com/t/using-attachmovie-to-put-something-above-a-loadclip-movie/290456/1 "2009-06-15T10:58:01Z")

</div>

Hi all, I’ve loaded a swf into my project by using loadClip, and now need to put some movieclips over the top of it using attachMovie. All the new movieclips appear behind the loaded movieclip.

Is this normal?

The movie I have loaded is inside an empty movieclip I’ve created called “container”. Eg:

```auto
 
var container:MovieClip = createEmptyMovieClip("container", getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this); 
mcLoader.loadClip("character_sprite.swf", container); 

```

I’m using getNextHighestDepth() to attach the movies I want on top. Eg:

```auto
attachMovie("sparkle","sparkle"+sparkleNum++,getnextHighestDepth(),{_x:xPos,_y:yPos})

```

The “sparkle” movie clips are attached much later, on a keypress. Any ideas why they are appearing below the container?
