# Percentage preloader w/multiple swfs into movie clip

**URL:** <https://forum.kirupa.com/t/percentage-preloader-w-multiple-swfs-into-movie-clip/35000>\
**Category:** Uncategorized\
**Created:** [November 9, 2003, 1:55am UTC](https://forum.kirupa.com/t/percentage-preloader-w-multiple-swfs-into-movie-clip/35000 "2003-11-09T01:55:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markhegz](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@markhegz](https://forum.kirupa.com/u/markhegz)\
**Post date:** [November 9, 2003, 1:55am UTC](https://forum.kirupa.com/t/percentage-preloader-w-multiple-swfs-into-movie-clip/35000/1 "2003-11-09T01:55:07Z")

</div>

anyone have any ideas on how to add a percentage preloader to this fla?

---

<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:** [November 9, 2003, 10:32pm UTC](https://forum.kirupa.com/t/percentage-preloader-w-multiple-swfs-into-movie-clip/35000/2 "2003-11-09T22:32:26Z")

</div>

I _think_ if you make a dynamic text box and give it a variable name like, LoadText

then put that box somewhere in your transition mc, which i think you called “loader”

then change this:

[AS]  
if (\_root.content.getBytesLoaded()\>=\_root.content.getBytesTotal()) {  
gotoAndPlay(“loaded”);  
}  
[/AS]

to

[AS]  
bytes\_loaded = Math.round(\_root.content.getBytesLoaded());  
bytes\_total = Math.round(\_root.content.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.LoadText = Math.round(getPercent\*100)+"%";  
if (bytes\_loaded == bytes\_total) {  
gotoAndPlay(“loaded”);  
}  
[/AS]

of course the this.LoadText = Math.round line would have to reflect your path to it…ie \_root.loader.LoadText = Math.round or whatever it should put a percentage loaded
