# Some preloading questions

**URL:** <https://forum.kirupa.com/t/some-preloading-questions/28453>\
**Category:** flash\
**Created:** [August 13, 2003, 9:26pm UTC](https://forum.kirupa.com/t/some-preloading-questions/28453 "2003-08-13T21:26:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prophecy](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Prophecy](https://forum.kirupa.com/u/Prophecy)\
**Post date:** [August 13, 2003, 9:26pm UTC](https://forum.kirupa.com/t/some-preloading-questions/28453/1 "2003-08-13T21:26:49Z")

</div>

i recently saw a web site where u click on a button, a bar comes over the content, says loading and shows a load bar and then when its done loading, slides the bar back to show new content. i started lookin around the tutorials and found this tutorial : [http://www.kirupa.com/developer/mx/preloader\_transition.htm](http://www.kirupa.com/developer/mx/preloader_transition.htm) , wich is exactly what i wanted… except for there is no load bar. now im not great with action scripting(or any scripting for that matter) but i tried to add my own script to it. this is what i did … i made a box on a new layer, made it a mc, and named it/gave it an instance name of loadbar(with a registration from the left side). then i went and added this script to the mc that the other swf files would be loaded into…

onClipEvent(enterFrame){  
var bytes\_total;  
var bytes\_loaded;  
var getPercent;  
if(bytes\_total != bytes\_loaded){  
bytes\_total = Math.round(this.getBytesTotal());  
bytes\_loaded = Math.round(this.getBytesLoaded());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.loadBar.\_width = getPercent\*100;  
}  
}

after messing with a whole lot i figured i would admit defeat and ask for some help. thanx guys.  
[im using mx]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 14, 2003, 3:03am UTC](https://forum.kirupa.com/t/some-preloading-questions/28453/2 "2003-08-14T03:03:26Z")

</div>

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=29316&highlight=loadbar](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=29316&highlight=loadbar)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 14, 2003, 3:07am UTC](https://forum.kirupa.com/t/some-preloading-questions/28453/3 "2003-08-14T03:07:51Z")

</div>

thanx. also, great tutorial, it was much appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 14, 2003, 3:08am UTC](https://forum.kirupa.com/t/some-preloading-questions/28453/4 "2003-08-14T03:08:47Z")

</div>

no problem =)
