Picture Show - help w/actionscripting

OK, i’m trying to make a small gallery with thumbnails, and when clicked on they go to the jpgs – the thumbnails are in the flash file, but the jpgs are dynamically loaded. To do this i used the actionscript from the tutorial

http://www.kirupa.com/developer/mx/photogallery.htm

right now I have 2 photos, and 2 thumbnails, - I can get the pictures to load, but I was wondering how I would link the thumbnails to the pictures themselves (right now the thumbnails are like “back” and “forward” buttons)

Also, - I was wondering if anyone knew of any possible way to have a preloader for the jpgs.

Thanks!!! :beam: