# External swf Preloader help

**URL:** <https://forum.kirupa.com/t/external-swf-preloader-help/185740>\
**Category:** Uncategorized\
**Created:** [April 16, 2006, 12:54am UTC](https://forum.kirupa.com/t/external-swf-preloader-help/185740 "2006-04-16T00:54:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shadownetspy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/shadownetspy/32/1883_2.png) [@Shadownetspy](https://forum.kirupa.com/u/Shadownetspy)\
**Post date:** [April 16, 2006, 12:54am UTC](https://forum.kirupa.com/t/external-swf-preloader-help/185740/1 "2006-04-16T00:54:58Z")

</div>

Hello!

Since no one answered my question in the “Flash MX” area, I’ll try here. I’ve been attempting to create a simple, yet successful preloader (it seems like) forever, now. Everything seems to be working fine with what I have now, except for the fact that my preloader bar keeps jumping to its full length while it’s loading, instead of just keeping its position until it’s loaded some more. Here is the actionscript I currently have on my preloader bar:

```auto
onClipEvent (load) {
 loadMovieNum("site.swf", 1);
}
onClipEvent (enterFrame) {
 Total = Math.floor(_level1.getBytesTotal()/1000)+(_root.getBytesTotal()/1000);
 Loaded = Math.floor(_level1.getBytesLoaded()/1000)+(_root.getBytesLoaded()/1000);
 Percent = Math.floor((Loaded/Total)*100);
 _root.PercentDisplayTwo = int(Loaded)+" KB "+" | "+(Total)+" KB"+" | "+(Percent)+" %";
 setProperty(_root.bar, _xscale, Percent);
 if (Percent == 100) {
  _level1.gotoAndPlay("One");
 }
}

```

I just can’t find anything wrong with it - although, I’m not exactly a pro (or even experienced) when it comes to actionscript. If someone could PLEASE help, I’d GREATLY, **GREATLY** appreciate it. Thanks in advance!

-Shadownetspy
