# Simple question about the xml photogallery preloader

**URL:** https://forum.kirupa.com/t/simple-question-about-the-xml-photogallery-preloader/255506
**Category:** flash
**Created:** [March 24, 2008, 5:33am UTC](https://forum.kirupa.com/t/simple-question-about-the-xml-photogallery-preloader/255506 "2008-03-24T05:33:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![max999](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@max999](https://forum.kirupa.com/u/max999)
#### Post date: [March 24, 2008, 5:33am UTC](https://forum.kirupa.com/t/simple-question-about-the-xml-photogallery-preloader/255506/1 "2008-03-24T05:33:26Z")

</div>

Hi guys i am just trying to change the preloader bar because it seems not to show the loading at all, i am working with big pics and the bar just stays like that in the middle of the page and doesn’t show progress, do i have to change the code?  
I am just trying to do an hairline bar that goes from left to righ across the whole page(800px).  
It’s maybe something very simple but i can’t get it.  
Thanks a lot for your help  
Massimo  
Here’s the code for the preloader in the xml PG:  
function preloadPic() {  
clearInterval(id);  
var con = picture.duplicateMovieClip(“con”+k, 9984+k);  
con.loadMovie(image[p]);  
preloader.\_visible = 1;  
preloader.swapDepths(con.getDepth()+3);  
con.\_alpha = 0;  
var temp = \_root.createEmptyMovieClip(“temp”+k, 99+k);  
k++;  
temp.onEnterFrame = function() {  
var total = con.getBytesTotal();  
var loaded = con.getBytesLoaded();  
percent = Math.round(loaded/total100);  
preloader.preload\_bar.\_xscale = percent;  
if (con.\_width) {  
preloader.\_visible = 0;  
con.onEnterFrame = fadeIn;  
if (slide) {  
id = setInterval(nextImage, 5000);  
}  
delete this.onEnterFrame;  
}  
};  
}
