# How To Import Swf Into Another Swf?

**URL:** <https://forum.kirupa.com/t/how-to-import-swf-into-another-swf/320583>\
**Category:** flash\
**Created:** [March 27, 2011, 10:44pm UTC](https://forum.kirupa.com/t/how-to-import-swf-into-another-swf/320583 "2011-03-27T22:44:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikeooh](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mikeooh](https://forum.kirupa.com/u/mikeooh)\
**Post date:** [March 27, 2011, 10:44pm UTC](https://forum.kirupa.com/t/how-to-import-swf-into-another-swf/320583/1 "2011-03-27T22:44:28Z")

</div>

I want to import a small swf into my main swf.

I tried this code:

```auto
onClipEvent (load){
_root.loadMovie("small.swf");
}

```

it show only my small.swf but outside the mainpage, this is not I want.

I also tried this:

```auto
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("small.swf");
myLoader.load(url);

```

can see the mainpage, but can’t load “small.swf”

Anyone can help?

best regards,

Mike
