# Scrollin thumbnails problem

**URL:** <https://forum.kirupa.com/t/scrollin-thumbnails-problem/53643>\
**Category:** flash\
**Created:** [June 6, 2004, 2:40am UTC](https://forum.kirupa.com/t/scrollin-thumbnails-problem/53643 "2004-06-06T02:40:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kfur](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@kfur](https://forum.kirupa.com/u/kfur)\
**Post date:** [June 6, 2004, 2:40am UTC](https://forum.kirupa.com/t/scrollin-thumbnails-problem/53643/1 "2004-06-06T02:40:37Z")

</div>

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.
