# Thumbnail Scroll Easing

**URL:** <https://forum.kirupa.com/t/thumbnail-scroll-easing/280630>\
**Category:** flash\
**Created:** [January 29, 2009, 6:38pm UTC](https://forum.kirupa.com/t/thumbnail-scroll-easing/280630 "2009-01-29T18:38:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmatzen](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@mmatzen](https://forum.kirupa.com/u/mmatzen)\
**Post date:** [January 29, 2009, 6:38pm UTC](https://forum.kirupa.com/t/thumbnail-scroll-easing/280630/1 "2009-01-29T18:38:58Z")

</div>

i used this tutorial a while back for thumbnail scrolling but i was never able to figure out how to make it ease. Can anyone help me? Any advice would be appreciated.

Here is my AS

```auto
panel.onRollOver = panelOver;

function panelOver() {
    this.onEnterFrame = scrollpanel;
    delete this.onRollOver;
}

var b = stroke.getBounds(_root);

function scrollpanel(){ 
    if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
        this.onRollOver = panelOver;
        delete this.onEnterFrame;
    }
    
    if(panel._x>= 14) {
        panel._x = 14;
    }
    
    if(panel._x<= -514) {
        panel._x = -514;
    }
    
    var xdist = _xmouse - 400; 
    //lower number is faster and higher number is slower
    panel._x += -xdist / 20;
}

```
