# What's wrong with my preloader?

**URL:** <https://forum.kirupa.com/t/whats-wrong-with-my-preloader/214106>\
**Category:** Uncategorized\
**Created:** [January 25, 2007, 4:30pm UTC](https://forum.kirupa.com/t/whats-wrong-with-my-preloader/214106 "2007-01-25T16:30:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slipknot](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@slipknot](https://forum.kirupa.com/u/slipknot)\
**Post date:** [January 25, 2007, 4:30pm UTC](https://forum.kirupa.com/t/whats-wrong-with-my-preloader/214106/1 "2007-01-25T16:30:11Z")

</div>

‘actions’ frame code:

stop();  
bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(3);  
}

it’s not working.  
and one more question:  
when loading a movieclip on another that is on the web, where should i place the preloader? on the movie that loads the other or on the movie that is being loaded?
