# Preload external swf's into one main swf

**URL:** <https://forum.kirupa.com/t/preload-external-swfs-into-one-main-swf/180147>\
**Category:** flash\
**Created:** [February 26, 2006, 4:33am UTC](https://forum.kirupa.com/t/preload-external-swfs-into-one-main-swf/180147 "2006-02-26T04:33:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gatsu](https://avatars.discourse-cdn.com/v4/letter/g/0ea827/32.png) [@Gatsu](https://forum.kirupa.com/u/Gatsu)\
**Post date:** [February 26, 2006, 4:33am UTC](https://forum.kirupa.com/t/preload-external-swfs-into-one-main-swf/180147/1 "2006-02-26T04:33:08Z")

</div>

Forgive me for asking what will probably be a very simple question but I have a nasty headache and I am tired of searching the web for the answer.

Basically I used a tutorial from here to add a preloader to my site. The preloader works for my main swf file, but it does not load the external swf files that I call during the movie playback.

Here is the code I used:

FRAME 1

* * *

bytes\_loaded = Math.round(\_root.getBytesLoaded());  
bytes\_total = Math.round(\_root.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.loadBar.\_width = getPercent_100;  
\_root.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
\_root.gotoAndPlay(3);

* * *

FRAME 2

* * *

gotoAndPlay(1);

* * *

Because everything already works and is very simple and easy, I was hoping there were a couple of lines I could add to the existing script that would allow me to load external movies as part of the overall loading process.

I have searched and put forth an effort to figure this out but I would really appreciate an experts help at this time.

Thank you
