# Loading SWF

**URL:** https://forum.kirupa.com/t/loading-swf/260209
**Category:** Uncategorized
**Created:** [May 13, 2008, 3:06pm UTC](https://forum.kirupa.com/t/loading-swf/260209 "2008-05-13T15:06:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![shadows](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@shadows](https://forum.kirupa.com/u/shadows)
#### Post date: [May 13, 2008, 3:06pm UTC](https://forum.kirupa.com/t/loading-swf/260209/1 "2008-05-13T15:06:31Z")

</div>

HI,

I load an external SWF, with this code :

```auto
var mList1:Object = new Object();
var mLoad1:MovieClipLoader = new MovieClipLoader();
mLoad1.addListener(mList1);
var hold1:MovieClip = this.createEmptyMovieClip("holder1", this.getNextHighestDepth());
mLoad1.loadClip('files/socie.swf', holder1);
holder1._x = 140.0;
holder1._y = 230.0;
holder1._xscale = 70;
holder1._yscale = 70;

```

and when i go to next screen i remove it with

```auto
mLoad1.unloadClip(holder1);

```

No problem loading it, or removing it. But when i go back to the frame where i loaded it, it will load again, but it will not play porperly, because it skips some onKeyDown events… I don’t get it because, the first time it plays, it plays it all perfectly… any ideas? I use this.\_rootlock in the swf… :pac:
