PDA

View Full Version : Thumbnail Scrollbar Loop?



solitarycow
August 17th, 2005, 12:14 AM
For those who are familiar with the scrolling thumbnail gallery tutorial:
http://www.kirupa.com/developer/mx2004/thumbnails.htm

Can anyone provide me with some code on how to make the scrolling thumbnails loop infinitely? So that when you reach the last picture on the scrollbar, it will loop to the first picture?

A good example is www.wynnlasvegas.com (http://www.wynnlasvegas.com)

Thanks everyone!

tabarnaco
August 17th, 2005, 12:24 AM
Maybe it could help?

http://www.kirupa.com/developer/mx/infinite.htm
:smirk:

solitarycow
August 17th, 2005, 12:27 AM
Yeah I looked at that, but the loop needs to be done in Actionscript and not on the timeline itself. So basically the thumbnails need to recreate themselves somehow (using Actionscript), I think.

tabarnaco
August 17th, 2005, 12:39 AM
I'm not sure I understand exactly what you mean...
But you don't need to recreate your thumbs in actionscript, you only need to reposition them at the end or the beginning of the line when your thumbs are out of the window...
You just change your _x, that's all.