# Preloader problem

**URL:** <https://forum.kirupa.com/t/preloader-problem/250398>\
**Category:** Uncategorized\
**Created:** [January 29, 2008, 8:24am UTC](https://forum.kirupa.com/t/preloader-problem/250398 "2008-01-29T08:24:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlackyashdya](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jlackyashdya](https://forum.kirupa.com/u/jlackyashdya)\
**Post date:** [January 29, 2008, 8:24am UTC](https://forum.kirupa.com/t/preloader-problem/250398/1 "2008-01-29T08:24:45Z")

</div>

hi,  
i m developing a xml based image gallery. i wrote code for generating thumbnails using loader component.  
its working fine locally. but when i upload it its taking long time to load thumbnails. so i want to add preloader to it.  
i tried using progress bar component. but not working!!!

i tried following :

code for creating thumbnails :

[INDENT]for (var i:Number = 0; i \< thumbs.firstChild.childNodes[0].childNodes.length; i++)  
{  
\_root.emptymc\_mc.scrollmc\_mc.newmc\_mc.createClassO bject(mx.controls.Loader, “clip” + i , i, {contentPath:  
thumbs.firstChild.childNodes[0].childNodes\*.childNodes[0].nodeValue, scaleContent: true, \_width: 40, \_height: 40, \_xi\*55), \_y:5});

\_root.emptymc\_mc.my\_pb.\_visible = true;  
\_root.emptymc\_mc.my\_pb.setProgress(i, imageslength);

\_global.endpoint = i \* 55;

}  
[/INDENT]

but its directly showing 91% and not the progress.

please reply…please please help…

thanks a lot  
jlackyashdya
