# Trying to do a scrolling panel in AS 2.0

**URL:** <https://forum.kirupa.com/t/trying-to-do-a-scrolling-panel-in-as-2-0/196057>\
**Category:** Uncategorized\
**Created:** [August 5, 2006, 12:50am UTC](https://forum.kirupa.com/t/trying-to-do-a-scrolling-panel-in-as-2-0/196057 "2006-08-05T00:50:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rssej](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@rssej](https://forum.kirupa.com/u/rssej)\
**Post date:** [August 5, 2006, 12:50am UTC](https://forum.kirupa.com/t/trying-to-do-a-scrolling-panel-in-as-2-0/196057/1 "2006-08-05T00:50:49Z")

</div>

i have a code for scrolling thumbnail paner AS 1.0 and id like to know what the equivalent would be for the same thing in AS2.

heres the code for 1.o

panel.onRollOver = panelOver;

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

var b = stroke.getBounds(\_root.picspage);

function scrollPanel() {  
if (\_xmouse\<b.xMin || \_xmouse\>b.xMax || \_ymouse\<b.yMin || \_ymouse\>b.yMax) {  
this.onRollOver = panelOver;  
delete this.onEnterFrame;  
}  
if (panel.\_x \>= -267) {  
panel.\_x = -267;  
}

if (panel.\_x \<= -2429) {  
panel.\_x = -2429;  
}

var xdist = \_xmouse - 0;

panel.\_x += -xdist / 5;

}
