# Smooth scrolling Help (actionscript easing)

**URL:** <https://forum.kirupa.com/t/smooth-scrolling-help-actionscript-easing/205695>\
**Category:** flash\
**Created:** [November 1, 2006, 2:21am UTC](https://forum.kirupa.com/t/smooth-scrolling-help-actionscript-easing/205695 "2006-11-01T02:21:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wackizzy](https://avatars.discourse-cdn.com/v4/letter/w/59ef9b/32.png) [@wackizzy](https://forum.kirupa.com/u/wackizzy)\
**Post date:** [November 1, 2006, 2:21am UTC](https://forum.kirupa.com/t/smooth-scrolling-help-actionscript-easing/205695/1 "2006-11-01T02:21:20Z")

</div>

After following the great tutorial on creating a **Photo Gallery** and then also following up with the **Adding Thumbnails** one. I’ve created a neat little portfolio type movie. Now I know a couple of people have asked about getting it to work with the **Infinite Menu** and **scotty** seemed to clear that up.

What I’m trying to achieve is getting the left and right scoll to ease out once you’ve scrolled to the last thumbnail on either side.

```auto

// Thumbnail Scroller actions.
function thumbNailScroller() {
    this.createEmptyMovieClip("tscroller", 1000);
    scroll_speed = 5;
    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;
        }
    };
}

```

I’m thinking I will need to add in some extra code into this block to get it working, but I’m stumped as to where?

Any help would be great…

Thanks in advance. =)
