[CS3] Photo Gallery tutorial help

Hey i read your tutorial on Creating a Photo Gallery:
http://www.kirupa.com/developer/mx/photogallery.htm

I’ve been trying to figure out how to activate the script when I click on a button - as in loadmovie into a blank mc.
For example I click on “project1” and it loads “image1.1” “image1.2” and “image1.3” ; I click on “project2” and it loads “image2.1” “image2.2” and “image2.3” etc.

Can’t get it working though.
Appreciate the help,
Cheers
Barton