# Preloading a seperate .swf

**URL:** https://forum.kirupa.com/t/preloading-a-seperate-swf/35748
**Category:** flash
**Created:** [November 17, 2003, 6:00pm UTC](https://forum.kirupa.com/t/preloading-a-seperate-swf/35748 "2003-11-17T18:00:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Liquideye](https://avatars.discourse-cdn.com/v4/letter/l/aeb1de/32.png) [@Liquideye](https://forum.kirupa.com/u/Liquideye)
#### Post date: [November 17, 2003, 6:00pm UTC](https://forum.kirupa.com/t/preloading-a-seperate-swf/35748/1 "2003-11-17T18:00:26Z")

</div>

I have an intro.swf and main.swf

in the intro.swf i have an intro then an enter button, when the enter button is clicked it goes to a preloader bar and loading text.  
is there anyway to preload the main.swf from my intro.swf?

I’m sure i have seen a tut for it on here, but i cant find the right one, thought i would ask for advice befoe i mess somthing up

i understand the code for loading the remainder of a swf to be:

[AS]bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(368);  
[/AS]

But that wont preload an external swf obviously.

Any help / advice appreciated
