Adding Thumbnails to XML Gallery Problem

So I finished the tutorial on Adding Thumbnails to the XML Photo Gallery. Everything works perfectly. I then went to another flash file, created a container that would load the XML Gallery into it and that worked. My problem: When i put the mouse over any part of the scroll part it’ll scroll to the left, but when i want it to scroll back to the right, hit area in which i have to put the mouse over is WAY OFF to the left side. whats going on? I looked through the action script and tryed messing with the following codes and changing the -40 and +40 to see if that would effect anything and it made the hit areas move but then the whole scroller would shake back and forth. in other words… I have NO IDEA what i’m doing. Please help! :huh:

// thumbnail code!
this.createEmptyMovieClip(“tscroller”, 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}