Completely Dynamic Gallery

Hi

I was wondering how to make a gallery similar to the dynamic gallery tutorial on kirupa.com, but with preloaded thumbnails for those images. Also the ability to neatly layout any amount of thumbnails on the page aswell.
A really good example of what I’m talking about can be found at:
http://buggedcom.50megs.com/protogallery.html
That SWF was made using all code an no actual MCs, etc. on the stage, and I was wondering how to do it in a more simpler fashion.
I have the FLA, if anyone wants to look at it btw.
Thanks