# How can i preload images (in a gallery) automatically?

**URL:** <https://forum.kirupa.com/t/how-can-i-preload-images-in-a-gallery-automatically/216320>\
**Category:** flash\
**Created:** [February 15, 2007, 1:25pm UTC](https://forum.kirupa.com/t/how-can-i-preload-images-in-a-gallery-automatically/216320 "2007-02-15T13:25:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![knalle](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/knalle/32/3310_2.png) [@knalle](https://forum.kirupa.com/u/knalle)\
**Post date:** [February 15, 2007, 1:25pm UTC](https://forum.kirupa.com/t/how-can-i-preload-images-in-a-gallery-automatically/216320/1 "2007-02-15T13:25:10Z")

</div>

How can you expand the XML gallery (from the tutorial here on [kirupa.com](http://kirupa.com)) to automatically load the next image, and the next, etc. while the current picture has loaded (and most likely is being viewed for a moment by the visitor)?

here is the link for the xml gallery from 2004:  
[http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)

Thanks in advance 🙂
