# Scrolling thumbnail problem

**URL:** <https://forum.kirupa.com/t/scrolling-thumbnail-problem/215036>\
**Category:** flash\
**Created:** [February 3, 2007, 7:46am UTC](https://forum.kirupa.com/t/scrolling-thumbnail-problem/215036 "2007-02-03T07:46:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![baterax](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@baterax](https://forum.kirupa.com/u/baterax)\
**Post date:** [February 3, 2007, 7:46am UTC](https://forum.kirupa.com/t/scrolling-thumbnail-problem/215036/1 "2007-02-03T07:46:49Z")

</div>

Hey guys!

I made a thumbnail scroller and got it working, horizontally…  
When I tried to make it work vertically, no luck!  
I’ve attached the file for convenience.  
Please help me, I need this guys.

This is the code:

```auto
panel.onRollOver = panelOver;

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

var b = stroke.getBounds(_root);

function scrollPanel() {
    if(_ymouse<b.xMin || _ymouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
        this.onRollOver = panelOver;
        delete this.onEnterFrame;
    }
    
    if(panel._y >= 60) {
        panel._y = 60;
    }
    
    if(panel._y <= -820) {
        panel._y = -820;
    }
    
    var ydist = _ymouse - 215;
    
    panel._y += Math.round(-ydist / 5);
}

```
