Photo gallery problems

I did the photo gallery tutorial and added the thumbnails and it works great when I do it in a new file. When I try to do it in my websites flash file i get all sorts of “access of undefined property” errors. i fairly new to flash with an on again off again relationship to it so I am sure I am just doing something stupid. Not sure what info to give or post here. I have created my entire site in flash with it jumping to 4 navigation labels. I am trying to put the photo gallery in my photo label after a small flash animation that moves my title for more room. I create all of the items as in the tutorial but I may not be putting the scripting in the right place. i tried to put it in the actions frame of where the photo gallery comes in and in frame 1 of the site and also after the into flash stops at my navigation. Do I need to break up the scripting so it loads xml data in one frame and then has all the scrolling action in another. Wish I knew what to post to help anyone out in helping me. Here is the code pretty much straight out of the turorial. thanks!!!

the flash animation i have so far is at ryanfilm.com if that helps at all.