# Loading bar not working when uploaded on the net?

**URL:** <https://forum.kirupa.com/t/loading-bar-not-working-when-uploaded-on-the-net/201777>\
**Category:** Uncategorized\
**Created:** [September 25, 2006, 2:20am UTC](https://forum.kirupa.com/t/loading-bar-not-working-when-uploaded-on-the-net/201777 "2006-09-25T02:20:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hunson](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@Hunson](https://forum.kirupa.com/u/Hunson)\
**Post date:** [September 25, 2006, 2:20am UTC](https://forum.kirupa.com/t/loading-bar-not-working-when-uploaded-on-the-net/201777/1 "2006-09-25T02:20:38Z")

</div>

got a quick qustion, my loading bar works fine when i try them in the swf, but when i put them online, they stop working properly.

should i put a stop() script on the last frame of the loading bar?

the script i used is this, please help me on this one:

frame1:  
var ammountLoaded:Number = \_root.getBytesLoaded()/\_root.getBytesTotal();  
loadText.text = Math.round(ammountLoaded_100);  
preloader.\_width = ammountLoaded_994;

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