# ONE preloader in main swf for SEVERAL external swfs

**URL:** https://forum.kirupa.com/t/one-preloader-in-main-swf-for-several-external-swfs/140170
**Category:** Uncategorized
**Created:** [March 8, 2005, 10:14pm UTC](https://forum.kirupa.com/t/one-preloader-in-main-swf-for-several-external-swfs/140170 "2005-03-08T22:14:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ceetah](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@ceetah](https://forum.kirupa.com/u/ceetah)
#### Post date: [March 8, 2005, 10:14pm UTC](https://forum.kirupa.com/t/one-preloader-in-main-swf-for-several-external-swfs/140170/1 "2005-03-08T22:14:27Z")

</div>

[size=1]hi everyone.  
I need a preloader… that exists in the timeline of a certain main movie that is already loaded.

I want this preloader to be used for loading several external swfs (these swfs do not have a preloader of their own… )… so I don’t have to put the preloader in each external file loaded.

* * *

I am using now a preloader from kirupa thas is very simple… uses a mc that contains just a text box. the actions are :

onClipEvent (enterFrame) {  
var bytes = \_root.getBytesTotal();  
var bytes\_loaded = \_root.getBytesLoaded();  
if (bytes\_loaded == bytes) {  
gotoAndPlay(2);  
this.kirupatxt = “movie loaded”;  
} else {  
gotoAndStop(1);  
this.kirupatxt = “loading (” + parseInt(bytes\_loaded/1024) + “/” + parseInt(bytes/1024) +" ) ";

}  
}

if this helps…  
thanks[/size]

PS: I would kill for a made example… !! 😛 tell me what actions for the button… what actions for whatever moviclipe there is there… everything 😛
