Hi, this is a wonderful tutorial (http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm) and i could apply that to my design…so now my question is how to change the script to make it go back to first image after the last image…cos now when displaying the last image, next button couldnt go to first image and stuck in there…Thanks who can help.:rambo: