# Cool Thumbnails Scroll

**URL:** <https://forum.kirupa.com/t/cool-thumbnails-scroll/235105>\
**Category:** flash\
**Created:** [August 8, 2007, 2:56pm UTC](https://forum.kirupa.com/t/cool-thumbnails-scroll/235105 "2007-08-08T14:56:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lfdesign](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/lfdesign/32/3892_2.png) [@lfdesign](https://forum.kirupa.com/u/lfdesign)\
**Post date:** [August 8, 2007, 2:56pm UTC](https://forum.kirupa.com/t/cool-thumbnails-scroll/235105/1 "2007-08-08T14:56:02Z")

</div>

Hi!

I’m currently developing my first AS3 site for my friends’ band and I would appreciate some help from you! 😃

As you can see here [http://www.lpfmultimedia.com/theransack](http://www.lpfmultimedia.com/theransack) , on the gallery section, the thumbnails scroll a bit wierdly… Below is the code I made for it… Do you have some suggestions??

```php
//THUMBSMC SCROLL
        private function thumbsMcRollOver(event:MouseEvent):void {
            addEventListener(Event.ENTER_FRAME, thumbsEnterFrame);
        }
        private function thumbsEnterFrame(event:Event):void {
            //left movement
            if (mouseX > ((stageWidth/2) - (stageWidth/2)*0.90)) {
                if ((thumbsMc.x + thumbsMc.width) <= stageWidth) {
                    thumbsMc.x = stageWidth - thumbsMc.width;
                } else {
                    thumbsMc.x -= 10;
                }
            }
            //right movement
            if (mouseX < ((stageWidth/2) + (stageWidth/2)*0.90)) {
                if (thumbsMc.x >= 0) {
                    thumbsMc.x = 0;
                } else {
                    thumbsMc.x += 10;
                }
            }
            //Remove event listener
            if (mouseY > (thumbsMc.y + thumbsMc.height) || mouseY < thumbsMc.y) {
                removeEventListener(Event.ENTER_FRAME, thumbsEnterFrame);
            }
        }

```
