# Another newbie preloader predicament

**URL:** <https://forum.kirupa.com/t/another-newbie-preloader-predicament/168652>\
**Category:** flash\
**Created:** [November 9, 2005, 1:00am UTC](https://forum.kirupa.com/t/another-newbie-preloader-predicament/168652 "2005-11-09T01:00:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aerosurfer](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@Aerosurfer](https://forum.kirupa.com/u/Aerosurfer)\
**Post date:** [November 9, 2005, 1:00am UTC](https://forum.kirupa.com/t/another-newbie-preloader-predicament/168652/1 "2005-11-09T01:00:50Z")

</div>

In F8, I created a loading bar using the instance “loadBar”. I then inserted the following actionscript in a keyframe in an empty layer. It doesnt seem to work.

> 

stop();  
bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent\*100;  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(6);  
}

Can someone help me a bit here? thx in advance
