# Horizontal ScrollBar For Image Thumbails

**URL:** <https://forum.kirupa.com/t/horizontal-scrollbar-for-image-thumbails/314363>\
**Category:** flash\
**Created:** [September 26, 2010, 11:07am UTC](https://forum.kirupa.com/t/horizontal-scrollbar-for-image-thumbails/314363 "2010-09-26T11:07:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dc123](https://avatars.discourse-cdn.com/v4/letter/d/a6a055/32.png) [@dc123](https://forum.kirupa.com/u/dc123)\
**Post date:** [September 26, 2010, 11:07am UTC](https://forum.kirupa.com/t/horizontal-scrollbar-for-image-thumbails/314363/1 "2010-09-26T11:07:26Z")

</div>

Yes, it’s stupid but I’m having trouble with the concept of putting together a ScrollBar for some thumbnails using AS3.

Here’s what I think might be needed:  
**a** ) 1 x MovieClip - with an instance name of let’s say, ScrollBar - obviously, being the scrollbar itself - in my case, i’ll have this as a simple thin line.  
**b** ) 1 x Movieclip - with an instance name of Thumbs - inside here, would be more individual MovieClips containing multiple thumbnails (this is the MovieClip that I wish to be scrolled)  
**c** ) 1 x Frame on timeline, with ActionScript telling **a** to find out the width of **b** and the stage.width.

**c** is what I’m stuck with. I don’t know what to write for the ActionScript in order to make **a** a scroller for **b**.

I’d like the thumbnails to span across the entire stage.Width - i.e. **b** to be equal to the stage.Width. I think this would be done with this however:

“ **b** = Math.round(stage.stageWidth);”  
or something like this?)

so it’s not a huge issue!

If anybody knows how the rest of what I wish to create could be created - or any tutorials that could help me - that’d be great!

Thanks,  
DC123
