Help with actionscript for scrolling image gallery

I’m building a portfolio site with multiple picture galleries that are each in seperate .swfs and are called in when the user clicks on that gallery. I’m having a little difficulty with my actionscript though. (Using AS2)

I’ll bring up one gallery, then scroll through a few images on it, and it works fine. Then when I pull up another gallery, the new one comes up on the same page number in the image sequence as the last one, and so on, like they are all connected somehow.

I think it has something to do with using “_root”. Here is my coding:

On the image gallery strip of pictures that scrolls across, I have:

onClipEvent(enterFrame) {
_x += (_root.motionx - _x)/2;
_y += (_root.motiony - _y)/2;
_xscale += (_root.motionScale-_xscale)/5;
_yscale += (_root.motionScale-_yscale)/5;
}

On the buttons that control the picture strip, I have this code, with the x and y value changing accordingly:

on (release) {
_root.motionx = 281.2
_root.motiony = 210.3;
_root.motionScale = 100;
}

I have used this same code in all of the separate .swfs

Thanks for any help