# Replacing image preloader with simple text info in Photo Gallery Using XML and Flash

**URL:** <https://forum.kirupa.com/t/replacing-image-preloader-with-simple-text-info-in-photo-gallery-using-xml-and-flash/149545>\
**Category:** flash\
**Created:** [May 30, 2005, 2:12pm UTC](https://forum.kirupa.com/t/replacing-image-preloader-with-simple-text-info-in-photo-gallery-using-xml-and-flash/149545 "2005-05-30T14:12:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Design\_Noir](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@Design\_Noir](https://forum.kirupa.com/u/Design_Noir)\
**Post date:** [May 30, 2005, 2:12pm UTC](https://forum.kirupa.com/t/replacing-image-preloader-with-simple-text-info-in-photo-gallery-using-xml-and-flash/149545/1 "2005-05-30T14:12:56Z")

</div>

Using the “**[color=Red]Photo Gallery Using XML and Flash[/color]**” from the site, basicly ALL i want to do is replace the graphical preloader with just a dynamic text boxes that just has “file size loaded, file size remaining, percent loaded” [itd be done as three seperate dynamic text boxes using the values

[color=DarkSlateBlue]totalBytes = this.getBytesTotal();  
loadedBytes = this.getBytesLoaded();  
remainingBytes = totalBytes - loadedBytes  
percentDone = int((loadedBytes/totalBytes)\*100);[/color]

or something of the sort [this is all theory/whatever till i try to get it working haha!]

I guess the way to do it would be to replace the preloader with a dynamic text field(s) or something and then change the code

[color=Navy]if (loaded != filesize) {  
preloader.preload\_bar.\_xscale = 100\*loaded/filesize;  
} else {  
preloader.\_visible = false; [/color]

to something like  
[color=Indigo]  
if (loaded != filesize) {  
**BLA BLA BLA WHATEVER WHATEVER**  
} else {  
preloader.\_visible = false;[/color]

Any help or pointers muchly appreciated!! Ill work on it and post any results up here too!

Regards, Alex, from Perth, in the land “down under” ha ha!
