Question about Photo Gallery Using XML and Flash tutorial

http://kirupa.com/developer/mx2004/xml_flash_photogallery.htm

Hi guys, im new to these forums and to flash so please be patient with me. Well my question is that i am trying to use XML and Flash to create a photo gallery but i would like it to be automated. Instead of having to click on the next and back buttons to switch the pics i would like for them to change automatically by defined command. This tutorial hlped and is actually exactly what i want to do but without the next and back buttons. If any one has any clue your feedback is appreciated. Ty