# Thumbnail Scroller on Picture Gallery

**URL:** https://forum.kirupa.com/t/thumbnail-scroller-on-picture-gallery/237903
**Category:** flash
**Created:** [September 5, 2007, 11:36am UTC](https://forum.kirupa.com/t/thumbnail-scroller-on-picture-gallery/237903 "2007-09-05T11:36:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Banthorpe](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@Banthorpe](https://forum.kirupa.com/u/Banthorpe)
#### Post date: [September 5, 2007, 11:36am UTC](https://forum.kirupa.com/t/thumbnail-scroller-on-picture-gallery/237903/1 "2007-09-05T11:36:27Z")

</div>

Hi everyone,

I’m making a picture gallery and need a bit of a point in the right direction, coz I’m quite new to flash.

[Take a look at my progress so far.](http://www.artone.co.uk/Flash/currently%20exhibiting_mod.swf)

[COLOR=Green]I’d like to be able to make the thumbs scroll continuously while the buttons are held down, and also prevent scrolling at the end and beginning of the thumbnail block (rether than scrolling to infinity!).[/COLOR]

All I’ve done so far is simly add the following code to the buttons:

left\_btn code

[COLOR=Red]on(press) {  
thumbnail\_mc.\_x += 25;  
}[/COLOR]

right\_btn code

[COLOR=Red]on(press) {  
thumbnail\_mc.\_x -= 25;  
}[/COLOR]

Where thumbnail\_mc is the movie clip containing the thumbs.

If anyone’s got any ideas or can point me in the right direction, please post them up or email me on charlie\_B\_04@hotmail.com.

Cheers!  
charlie
