# Loading scrolling thumbs by batch of an XML gallery

**URL:** <https://forum.kirupa.com/t/loading-scrolling-thumbs-by-batch-of-an-xml-gallery/318733>\
**Category:** Uncategorized\
**Created:** [January 28, 2011, 3:36pm UTC](https://forum.kirupa.com/t/loading-scrolling-thumbs-by-batch-of-an-xml-gallery/318733 "2011-01-28T15:36:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rvflores1985](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@rvflores1985](https://forum.kirupa.com/u/rvflores1985)\
**Post date:** [January 28, 2011, 3:36pm UTC](https://forum.kirupa.com/t/loading-scrolling-thumbs-by-batch-of-an-xml-gallery/318733/1 "2011-01-28T15:36:03Z")

</div>

Hi, I am working on a flash gallery using XML data to fetch images. I have a scrolling thumbnail function below. The drawback is, when it reaches more than a hundred sets of thumbs, the flash gets laggy and sometimes become unresponsive. I instead thought of loading the thumbnails by batches of 5 for example so that only 5 sets will be loaded, and the next set will be loaded once the user clicks on the next or previous button. Can anyone guide me or help me on how to start the script?
