Looping Thumbnail Gallery


I’ve been following the thumbnail tutorial at http://www.kirupa.com/developer/mx2004/thumbnails.htm

I’ve stripped out everything except the scrolling thumbnail pane and reversed it to auto-scroll, i.e. you don’t need to mouseover to make it scroll. I’ve altered it to stop when you hover and scroll when you mouse out.

However, when it reaches the end of the thumbnails, it stops and you end up with blank white space.

My question is how to make it loop, so it has a continuously scrolling set of thumbnails?