# attachMovie and loadMovie layer problem

**URL:** <https://forum.kirupa.com/t/attachmovie-and-loadmovie-layer-problem/57398>\
**Category:** flash\
**Created:** [July 12, 2004, 10:58pm UTC](https://forum.kirupa.com/t/attachmovie-and-loadmovie-layer-problem/57398 "2004-07-12T22:58:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmd](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@cmd](https://forum.kirupa.com/u/cmd)\
**Post date:** [July 12, 2004, 10:58pm UTC](https://forum.kirupa.com/t/attachmovie-and-loadmovie-layer-problem/57398/1 "2004-07-12T22:58:03Z")

</div>

first i load a movie clip from my library using attachMovie.  
then i load a jpg using loadMovie in a containerMC located on top of the clip above.  
the movie clip is a yellow square with alpha = 30.  
the jpg is a picture.

they both appear on stage but it looks like the picture is under the movie clip, so the picture has a yellow sheen (from the alpha) on it. how do i load the jpg above the attachMovie?

i loaded the jpg at the very last frame so it occurs last but it doesn’t make a difference. and the containerMC is on my top most layer.

chris

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 13, 2004, 12:08am UTC](https://forum.kirupa.com/t/attachmovie-and-loadmovie-layer-problem/57398/2 "2004-07-13T00:08:33Z")

</div>

\_myMc.swapDepths(\_myContainerMC);

will swap the depths of both movies, making the containerMC go above the attached mc.

Alternatively, you could assign each mc a depth using this in the first frame of each:

this.swapDepths(1);

\*where 1 is the depth… give containerMc a depth of 1 and attachedMc a depth of 2.

Hope this helps…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 13, 2004, 9:29pm UTC](https://forum.kirupa.com/t/attachmovie-and-loadmovie-layer-problem/57398/3 "2004-07-13T21:29:17Z")

</div>

hey Axis100,

Thanks for your help. It worked perfectly =)

chris
