# Need help with a continious thumbnail scroller

**URL:** https://forum.kirupa.com/t/need-help-with-a-continious-thumbnail-scroller/246686
**Category:** Uncategorized
**Created:** [December 13, 2007, 1:10pm UTC](https://forum.kirupa.com/t/need-help-with-a-continious-thumbnail-scroller/246686 "2007-12-13T13:10:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vic76](https://avatars.discourse-cdn.com/v4/letter/v/838e76/32.png) [@vic76](https://forum.kirupa.com/u/vic76)
#### Post date: [December 13, 2007, 1:10pm UTC](https://forum.kirupa.com/t/need-help-with-a-continious-thumbnail-scroller/246686/1 "2007-12-13T13:10:51Z")

</div>

Hi everybody,

This is my first post on Kirupa. I’m learning AS3 at the moment, but ran into some problems while building a thumbnail scroller that displays some thumbs from an XML file.

The idea is that when you move your mouse, the list of thumbnails start to scroll in a loop (continious scroll).

Loading the images is no problem.  
Moving the container with these thumbnails in it, isn’t a problem either.  
But making it loop…is a bit of a problem:)

This is the relevant part of my code so far:

```auto

private function doScroll(e:MouseEvent)
        {
            
            if (e.stageY < 90)
            {
                _widget.stage.addEventListener(Event.ENTER_FRAME,scrollDown);
            }

            
            function scrollDown(e:Event)
            {
                _widget.slidesContainer.y--;

            }

            
            if (e.stageY >120)
            {
                _widget.stage.addEventListener(Event.ENTER_FRAME,scrollUp);
            }
            
            
            function scrollUp(e:Event)
            {
                _widget.slidesContainer.y++;
                
            }
            
            
        }

```

This will move my “slidesContainer” up/down, relative to my mouse position.  
But when the slidesContainer scrolls down, I actually want to duplicate it and place it BEFORE the original slidesContainer, so that it will loop…

Any idea how to do this?  
Thnx!

Vic.
