# XML Photogallery tut q?

**URL:** <https://forum.kirupa.com/t/xml-photogallery-tut-q/72709>\
**Category:** flash\
**Created:** [December 8, 2004, 4:37pm UTC](https://forum.kirupa.com/t/xml-photogallery-tut-q/72709 "2004-12-08T16:37:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smellvetica](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@smellvetica](https://forum.kirupa.com/u/smellvetica)\
**Post date:** [December 8, 2004, 4:37pm UTC](https://forum.kirupa.com/t/xml-photogallery-tut-q/72709/1 "2004-12-08T16:37:30Z")

</div>

Hi,  
i’ve used scenes to load the various XML files to as i had 3 galleries.  
but if i was to place a function on a button that loaded the next xml file in the directory and the next thereafter and also go back to the previous xml file - how would i do this?

cheers.
