# Loading external swf preloader problem

**URL:** https://forum.kirupa.com/t/loading-external-swf-preloader-problem/104776
**Category:** Uncategorized
**Created:** [March 19, 2004, 1:44pm UTC](https://forum.kirupa.com/t/loading-external-swf-preloader-problem/104776 "2004-03-19T13:44:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Hessarp](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hessarp/32/462_2.png) [@Hessarp](https://forum.kirupa.com/u/Hessarp)
#### Post date: [March 19, 2004, 1:44pm UTC](https://forum.kirupa.com/t/loading-external-swf-preloader-problem/104776/1 "2004-03-19T13:44:22Z")

</div>

I’m trying to load an external swf into a clip on the timeline instance name “bildspel”

using [AS]bildspel.loadMovie(“reklam.swf”);[/AS]

the movie loads to 100% and then it stops.  
but when I go back in my main movie, and goes to the  
loadMovie frame again (external swf has been preloaded once)  
it runs the external swf, without problem.

I think I must have done something wrong somewhere but I can’t find it. I belive the problem is in the preloader script of reklam.swf which I’ve added below.

[AS]  
stop();  
onEnterFrame = function() {  
l = this.getBytesLoaded();  
t = this.getBytesTotal();  
per = Math.ceil(Math.round(l/t_100));  
bar.\_width = per_2;//bar width total 200  
if (per\>99 && t != 0) {  
gotoAndStop(2);  
delete this.onEnterFrame;  
}  
};  
[/AS]

I’m going crazy over this so if you have any suggestions, please reply

/Hessarp
