Photo gallery using xml and flash, implementing a circular menu

Hello

Using CS4, Actionscript 2, I have implemented the actionscript and xml described in the tutorial Adding Thumbnails, which is a modification of the *[URL=“http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm”]Photo Gallery Using XML and Flash * tutorial.

The specific project that I am working on requires a line of thumbnail images that do not ever stop; once they reach the end (the last image in the xml document), the first image needs to reappear and the entire list repeated infinitely, as a loop.

Does anyone have any idea how this goal can be accomplished, while using the code that I have already implemented?

Thank you