Scrollin thumbnails problem

I built a bunch of thumbnail buttons that through LoadMovie were placed on the _root stage into an empty movie clip. They worked perfect. I ran out of room on the stage so I built one of those infinite scrolling thumbnail bars. which is a movie clip with the buttons inside it. Now the buttons don’t do flop. I’ve tried everything.

I also havw bits of code everywhere when I really only want it on the main time line. How can I do this?

heres the code slider:

onClipEvent(load) {
nScreenWidth = 1024;
nMaxRate = 15;
function moveLeft(nPixels) {
this._x -= nPixels;
if (this._x < 0-nScreenWidth) {
this._x = 0;
}
}
function moveRight(nPixels) {
this._x += nPixels;
if (this._x > 0) {
this._x = 0-nScreenWidth;
}
}
}

onClipEvent(enterFrame) {
if (_root._xmouse < nScreenWidth/2 && _root._xmouse > 0) {
moveRight(nMaxRate - _root._xmouse * nMaxRate/(nScreenWidth/2));
} else {
if (_root._xmouse > nScreenWidth/2 && _root._xmouse < nScreenWidth) {
moveLeft(_root._xmouse * nMaxRate/(nScreenWidth/2) - nMaxRate);
}
}
}

heres the buttton code:

stop()
j-livethumb.onRelease = function() {
empty.loadMovie( “j-live.swf” );
};

where j-livethumb is the instance name for the button that has an over up and hit state.
help.