# Need help with preloader thing

**URL:** <https://forum.kirupa.com/t/need-help-with-preloader-thing/74297>\
**Category:** Uncategorized\
**Created:** [December 27, 2004, 6:52pm UTC](https://forum.kirupa.com/t/need-help-with-preloader-thing/74297 "2004-12-27T18:52:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nightshade](https://avatars.discourse-cdn.com/v4/letter/n/41988e/32.png) [@nightshade](https://forum.kirupa.com/u/nightshade)\
**Post date:** [December 27, 2004, 6:52pm UTC](https://forum.kirupa.com/t/need-help-with-preloader-thing/74297/1 "2004-12-27T18:52:18Z")

</div>

hi! @ only 15 im a mega noob and im playing around with mx 2004. im trying to create a flash site with a few songs on it. i have the songs on different swfs to the main one, and they are quite big (3.5mb) (im using loadMovie method). i would like a way of saying how much % has been loaded, with maybe a bar that gets wider it loads.

So far i have this in my swf with the music on it:

Frame 1:

stop();

loaded = Math.round(\_root.getBytesLoaded());  
total = Math.round(\_root.getBytesTotal());  
percent = (loaded/total)\*100;

\_root.percent\_loaded\_text = Math.round(percent);  
\_root.bar.\_width = Math.round(percent\*2);

if (\_root.bar.\_width = “200”) {  
gotoAndStop(2);  
}

percent\_loaded\_text is a var in dynamic text  
bar is a movie clip

Frame 2 has the music on it.
