# Preloading a separate .swf file.. but

**URL:** https://forum.kirupa.com/t/preloading-a-separate-swf-file-but/3609
**Category:** programming
**Created:** [January 18, 2002, 5:41am UTC](https://forum.kirupa.com/t/preloading-a-separate-swf-file-but/3609 "2002-01-18T05:41:34Z")
**Posts on this page:** 2
**Page:** 1

<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: [January 18, 2002, 5:41am UTC](https://forum.kirupa.com/t/preloading-a-separate-swf-file-but/3609/1 "2002-01-18T05:41:34Z")

</div>

how do i preload/load a separate .swf file whilst another one is playing? so when it is called upon it will play with no lag?

---

<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: [January 18, 2002, 10:05am UTC](https://forum.kirupa.com/t/preloading-a-separate-swf-file-but/3609/2 "2002-01-18T10:05:46Z")

</div>

A simple wat to this would be::

in the first frame of your main move [if u have an intro, in the first frame of that] us the ‘loadMovie’ action and load it up as norm - with your prloader in it…

in the first frame of the movie you r loading into the main movie add the action ‘stop’ - do not have anything in this frame apart from the stop action…

the movie will sit there until the the interaction that you want is preformed…i.e:

a button on the main time line is clicked…butt actions::

on (press) {  
\_root.mc\_name.gotoAndPlay (2);  
}

i hope this makes sence… i am a little hungover…so i may be babbling… 😉

i know there are more complex ways of preforming this… i am currently working on somthing simular a project i am doing myself…i will let you know what i come up with…

Cheerio,  
Ben…
