# Image Gallery Tutorail

**URL:** <https://forum.kirupa.com/t/image-gallery-tutorail/250817>\
**Category:** flash\
**Created:** [February 1, 2008, 7:51pm UTC](https://forum.kirupa.com/t/image-gallery-tutorail/250817 "2008-02-01T19:51:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arkman](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Arkman](https://forum.kirupa.com/u/Arkman)\
**Post date:** [February 1, 2008, 7:51pm UTC](https://forum.kirupa.com/t/image-gallery-tutorail/250817/1 "2008-02-01T19:51:48Z")

</div>

I have used the image gallery tutorial that I found [here.](http://www.kirupa.com/developer/mx2004/thumbnails.htm) I have everything working but the scrolling thumbnails. I can get it to work the way it is suppose to but I want to edit it a little bit. Instead of moving left to right at a constant speed, I would like to have the thumbnails jump left or right by 50 px. I am trying to have the thumbnails fill a static frame. So I need the frame to stay still and he thumbnails to move.

I have tried a few different things in the that I found in the forum but I can not get them to move the way I need them too. Below is the code that is part of the original gallery that tells the movie clip to move:

```auto

function thumbNailScroller()      
{ // thumbnail code! 
this.createEmptyMovieClip("tscroller",1000); 
scroll_speed =10; 
tscroller.onEnterFrame = function()         
{ if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) 
{ if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) 
{ thumbnail_mc._x -= scroll_speed;} else                
 if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left)))                 
{ thumbnail_mc._x += scroll_speed;}} 
else
{ delete tscroller.onEnterFrame;}
};
}

```

I think that is the part of the code that controls the scrolling of the movie.

Please someone help, I’m really confused. And not very good at this stuff.

Thanks,  
Josh
