# Loading Swf

**URL:** <https://forum.kirupa.com/t/loading-swf/25542>\
**Category:** flash\
**Created:** [July 14, 2003, 6:20am UTC](https://forum.kirupa.com/t/loading-swf/25542 "2003-07-14T06:20:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![imark](https://avatars.discourse-cdn.com/v4/letter/i/c5a1d2/32.png) [@imark](https://forum.kirupa.com/u/imark)\
**Post date:** [July 14, 2003, 6:20am UTC](https://forum.kirupa.com/t/loading-swf/25542/1 "2003-07-14T06:20:20Z")

</div>

Hey guys, ok here’s my situation:  
Right now I have a page with multiple swfs that load when different sections are clicked. The problem is, is that I want one of the swfs to load in my first preloader of the site, but not actually play it. Just want it to load it, and have it ready to go for later.

All help appreciated.

---

<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 14, 2003, 6:26am UTC](https://forum.kirupa.com/t/loading-swf/25542/2 "2003-07-14T06:26:07Z")

</div>

You could create an empty MovieClip, put it outside of the stage and load the SWF into it.

In ActionScript, that would be something like this:

```auto
// create MovieClip
this.createEmptyMovieClip("preloadSWF", 9876);
// move it outside of the stage
preloadSWF._x = Stage.width+100;
preloadSWF._y = Stage.height+100;
// load SWF
preloadSWF.loadMovie("myMovie.swf");

```

Any questions? =)

---

<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 14, 2003, 6:56am UTC](https://forum.kirupa.com/t/loading-swf/25542/3 "2003-07-14T06:56:48Z")

</div>

hrmmm, it didnt really work b/c it still takes time to load the swf when i click it (so it obviosuly didnt load it in the previous loader)

---

<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 14, 2003, 7:04am UTC](https://forum.kirupa.com/t/loading-swf/25542/4 "2003-07-14T07:04:49Z")

</div>

I dont see why you are trying to do dat. External files are external so ppl only have to load what they need. If you wanted everything to be loaded in the begining, maybe you could have used movie clips instead of external swf’s. Just my opinion.  
:-\

---

<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 14, 2003, 6:27pm UTC](https://forum.kirupa.com/t/loading-swf/25542/5 "2003-07-14T18:27:27Z")

</div>

> \*Originally posted by claudio \*  
> \*\*I dont see why you are trying to do dat. External files are external so ppl only have to load what they need. If you wanted everything to be loaded in the begining, maybe you could have used movie clips instead of external swf’s. Just my opinion.  
> :-\ \*\*

I dont want everything to be loaded in the beginning, just two of the seven swfs.
