Previous Button: Going from first item in XML to the Last

Hi,

First time poster here… I’ve been working with the Phot gallery tutorial posted here:

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

and first off it’s a great tutorial! Very helpful. However, I’d like to be able to make the previous button go to the last image in the XML? Anyone have any ideas? I’m unable to figure out how to get the total number of photos.

thanks,
eljefeloco