# Loading bar problem

**URL:** https://forum.kirupa.com/t/loading-bar-problem/129577
**Category:** Uncategorized
**Created:** [November 25, 2004, 6:25am UTC](https://forum.kirupa.com/t/loading-bar-problem/129577 "2004-11-25T06:25:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![darkstyle](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@darkstyle](https://forum.kirupa.com/u/darkstyle)
#### Post date: [November 25, 2004, 6:25am UTC](https://forum.kirupa.com/t/loading-bar-problem/129577/1 "2004-11-25T06:25:22Z")

</div>

Hi there,  
I am using a loading bar with % (percentage) . Everything seems to be working properly but its giving a little problem , it load 25% and then shows the loading bar. That mean while loading till 25% of the movie the is completely blank. Which is quite annoying and recognized as a bug. Required help from the actionscripting expertise. Just little help or hint will be appreciated. Thanks.

For further reference I have uploaded the site on this address : [[color=#22229c]http://vazbo.net/client/shems/html/main.htm[/color]](http://vazbo.net/client/shems/html/main.htm)

The script I am using  
\*\*1st frame \*\*

```php
 
txtPercentage = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100) add "% Loaded"; 
tellTarget ("loader") { 
	gotoAndPlay(Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100)); 
} 

```

**2nd frame**

```php
if (_root.getBytesLoaded() == _root.getBytesTotal()) { 
	nextScene(); 
} else { 
	gotoAndPlay(1); 
} 

```

And a instance name : [color=darkorange]loader[/color] with containing 100 frames loading bar animation.
