# Creating Empty Clip At \_root And Loading SWF

**URL:** <https://forum.kirupa.com/t/creating-empty-clip-at--root-and-loading-swf/209377>\
**Category:** flash\
**Created:** [December 8, 2006, 7:05am UTC](https://forum.kirupa.com/t/creating-empty-clip-at--root-and-loading-swf/209377 "2006-12-08T07:05:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Post date:** [December 8, 2006, 7:05am UTC](https://forum.kirupa.com/t/creating-empty-clip-at--root-and-loading-swf/209377/1 "2006-12-08T07:05:49Z")

</div>

I have an object (with it’s own timeline) and on the last frame of that timeline I have the following code:

```auto

stop();
_root.createEmptyMovieClip("mainLoop_mc", 2000);
with (_root.mainLoop_mc){
  _x=0;
  _y=737;
}
_root.loadMovie("mainLoop.swf", _root.mainLoop_mc);

```

The problem is, when the “mainLoop.swf” file loads it obliterates my main UI SWF instead of attaching itself to a particular spot on the UI. So one SWF is replacing the other. Can anyone tell me what I’m doing wrong?
