# Externally Loaded SWF perLoader Problem

**URL:** <https://forum.kirupa.com/t/externally-loaded-swf-perloader-problem/164388>\
**Category:** flash\
**Created:** [September 30, 2005, 6:41pm UTC](https://forum.kirupa.com/t/externally-loaded-swf-perloader-problem/164388 "2005-09-30T18:41:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![youngloopy](https://avatars.discourse-cdn.com/v4/letter/y/f07891/32.png) [@youngloopy](https://forum.kirupa.com/u/youngloopy)\
**Post date:** [September 30, 2005, 6:41pm UTC](https://forum.kirupa.com/t/externally-loaded-swf-perloader-problem/164388/1 "2005-09-30T18:41:19Z")

</div>

I am using a simple preLoader on my site, it works fine on the intro and the main nav but when the main loads the external swf the preloader image just sits there and the bar doesnt move but after a while the movie loads as normal. Do I have to change something in the preLoader code because where the movie sits

frame 1:  
var amountLoaded:Number = \_root.getBytesLoaded()/\_root.getBytesTotal();  
bar\_mc.\_width = amountLoaded \* 200;  
loadText.text = Math.round(amountLoaded \* 100);

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

else {  
gotoAndPlay(1);  
}  
Here is a link if you want to see my problem:  
[http://www.nucklewebdesign.com/moving/main\_nav.htm](http://www.nucklewebdesign.com/moving/main_nav.htm)

If you will notice the first preLoader works but the one that loads the content movie does not and they are coded Exactly the same.
