# Revising advance buttons for photo gallery thumbnails

**URL:** <https://forum.kirupa.com/t/revising-advance-buttons-for-photo-gallery-thumbnails/257015>\
**Category:** flash\
**Created:** [April 9, 2008, 3:54pm UTC](https://forum.kirupa.com/t/revising-advance-buttons-for-photo-gallery-thumbnails/257015 "2008-04-09T15:54:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dpots](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@Dpots](https://forum.kirupa.com/u/Dpots)\
**Post date:** [April 9, 2008, 3:54pm UTC](https://forum.kirupa.com/t/revising-advance-buttons-for-photo-gallery-thumbnails/257015/1 "2008-04-09T15:54:23Z")

</div>

I downloaded an xml gallery setup from FlashDen and need to edit the advance buttons for the thumbnail images. Currently the buttons only advance the thumbnails one at a time. Ideally, I would also like to add a scrollbar as well. I’ve posed the question to the guy who created it but he doesn’t respond back on it. So I’ve come here for help!

Anyway, here is the code for the back button:

```auto
on (rollOver) {
        if (thumb_menu._x>thumb_menu.destX-0.5 && thumb_menu._x<thumb_menu.destX+0.5 && thumb_menu._x < thumb_menu.originX -5) {
                thumb_menu.destX = thumb_menu._x+(thumb_menu.thumb_mc._width+_parent.thumbSpacing);
        }
}

```

Now here is the heirarchy for the thumbnail setup for this:  
menu\_mc is a movieclip that contains the bttnPrev and bttnNext advance buttons along with a group that contains the holder for the thumbnails that are loaded. Within that group is a movieclip called thumb\_menu which then contains the movngs are nested.

Hope I have given enough info for help.

Thanks,  
Dave
