# Flash preloader with an external swf

**URL:** <https://forum.kirupa.com/t/flash-preloader-with-an-external-swf/296747>\
**Category:** flash\
**Created:** [September 19, 2009, 12:36pm UTC](https://forum.kirupa.com/t/flash-preloader-with-an-external-swf/296747 "2009-09-19T12:36:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngapleaz](https://avatars.discourse-cdn.com/v4/letter/n/97f17d/32.png) [@ngapleaz](https://forum.kirupa.com/u/ngapleaz)\
**Post date:** [September 19, 2009, 12:36pm UTC](https://forum.kirupa.com/t/flash-preloader-with-an-external-swf/296747/1 "2009-09-19T12:36:36Z")

</div>

I know it has been explained so many times but I can’t get this f\*\*er to work. Has been killing for almost two days, went through gozillions of posts and forums and still nothing, so many things go wrong. The case is simple:  
How do I put an external swf into my loader swf? both swfs are 700x700 and I want the embedded swf (“16.swf”) to start when the loading bar (‘preloader’, size 232.1) goes to 100% .  
I have three frames:  
1:  
var amountLoaded:Number = \_root.getBytesLoaded()/\_root.getBytesTotal();  
preloader.\_height = amountLoaded \* 232.1;  
loadtext.text = Math.round(amountLoaded \* 100);

2:  
if(\_root.getBytesLoaded() == \_root.getBytesTotal()) {  
gotoAndPlay(3);  
}  
else {  
gotoAndPlay(1);  
}

3:  
this is where the 16.swf is supposed to play

I know it is simple but can someone please explain it to me in few simple steps how to set up the containers etc? Please treat me like a retard.

Thx guyz
