Xml+slideshow looping problem

i worked this tutorial and i’m feeling like i understand how flash interprets the xml. one thing that i cannot figure out is how to make this slideshow loop through itself. the previous and forward buttons don’t take you anywhere when you are at the start and end of the slides. anyway to make the buttons continue showing pictures after you have reached the end of the xml file specifications???

here is the tutorial
http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm

nooner.