# Help making preloader into a external preloader

**URL:** https://forum.kirupa.com/t/help-making-preloader-into-a-external-preloader/99217
**Category:** Uncategorized
**Created:** [January 16, 2004, 1:20am UTC](https://forum.kirupa.com/t/help-making-preloader-into-a-external-preloader/99217 "2004-01-16T01:20:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jacko33](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@jacko33](https://forum.kirupa.com/u/jacko33)
#### Post date: [January 16, 2004, 1:20am UTC](https://forum.kirupa.com/t/help-making-preloader-into-a-external-preloader/99217/1 "2004-01-16T01:20:22Z")

</div>

Hey Flash Gurus

I need some help changing a preloader I have into a preloader that can be used for loading external swf.

Now the code for the preloader is

loadedbytes = getBytesLoaded();  
totalbytes = getBytesTotal();  
loadedkbytes = Math.ceil(loadedbytes/1000);  
totalkbytes = Math.ceil(totalbytes/1000);  
if (loadedbytes == totalbytes) {  
nextScene();  
}  
frame = int(loadedbytes/(totalbytes/100));  
tellTarget (\_root.loader) {  
gotoAndStop(\_root.frame);  
}

Ie the preloader and steps through a preloader animation filling the logo (ie loader)

Now I have tried changing a few things but having problems tried loading into a container and a level

Help would be awesome

Thanking you in advance  
jacko
