# Modifying the kirupa thumbnail scroller for gallery?

**URL:** <https://forum.kirupa.com/t/modifying-the-kirupa-thumbnail-scroller-for-gallery/294217>\
**Category:** flash\
**Created:** [August 11, 2009, 12:31am UTC](https://forum.kirupa.com/t/modifying-the-kirupa-thumbnail-scroller-for-gallery/294217 "2009-08-11T00:31:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tokey666](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@tokey666](https://forum.kirupa.com/u/tokey666)\
**Post date:** [August 11, 2009, 12:31am UTC](https://forum.kirupa.com/t/modifying-the-kirupa-thumbnail-scroller-for-gallery/294217/1 "2009-08-11T00:31:09Z")

</div>

I am looking to modify the kirupa thumbnail scroller. It just doesn’t work as smoothly and as well as I would like.

I simply would like to have two buttons that make the thumbnails slide in the correct directions. Here is my code so far.

```auto
    this.createEmptyMovieClip("tscroller",1000);
    scroll_speed = 5;
    tscroller.onEnterFrame = function() {
        if (thumbnail_mc.hitTest(hit_right)) {
            hit_right.onRelease = function() {
                thumbnail_mc._x -= scroll_speed;
            };
        }

```

As you can probably guess, it only works once. It moves the scroller once, not continuously. I though the onEnterFrame would have taken care of that but I guess not.

Any thoughts please?
