# createEmptyMovieClip()

**URL:** <https://forum.kirupa.com/t/createemptymovieclip/5035>\
**Category:** flash\
**Created:** [August 29, 2002, 3:15pm UTC](https://forum.kirupa.com/t/createemptymovieclip/5035 "2002-08-29T15:15:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_esa](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@g\_esa](https://forum.kirupa.com/u/g_esa)\
**Post date:** [August 29, 2002, 3:15pm UTC](https://forum.kirupa.com/t/createemptymovieclip/5035/1 "2002-08-29T15:15:17Z")

</div>

Hi,

I’m trying to tackle the "[Loading techniques](http://www.kirupa.com/developer/mx/loading.asp) " tutorial and it works well. The only thing is that the pictures keeps appearing on top of my entire flash site. I want the loaded swf to open on a predefined layer so it won’t mess up my layout. Can somebody tell me how I can blend a loadMovie(swf) into my site?

Thanx

---

<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:** [August 30, 2002, 11:44am UTC](https://forum.kirupa.com/t/createemptymovieclip/5035/2 "2002-08-30T11:44:45Z")

</div>

If you’re talking about the createEmptyMovieClip method, the second parameter is the depth of the movie. So if you want something to appear on top of it, it must have a higher depth (you can switch the depths with swapDepths, there’s a tute on this site but there are a few errors in it). Be careful: everything you draw on the scene in placed on negative depths, so it will always be under, except if you swapDepths it of course.

pom :asian:
