# Scroll bar

**URL:** <https://forum.kirupa.com/t/scroll-bar/192429>\
**Category:** Uncategorized\
**Created:** [June 28, 2006, 3:30pm UTC](https://forum.kirupa.com/t/scroll-bar/192429 "2006-06-28T15:30:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JUMBOshrimp](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@JUMBOshrimp](https://forum.kirupa.com/u/JUMBOshrimp)\
**Post date:** [June 28, 2006, 3:30pm UTC](https://forum.kirupa.com/t/scroll-bar/192429/1 "2006-06-28T15:30:48Z")

</div>

I suppose this is more of a math problem than anything else… I have text with buttons that cause it to scroll up and down but I don’t know how to give it a bar that travels 100% of the distance between the top/bottom buttons…

also … after that I am doing something similar with dynamically loaded content so I would need the bar to be somewhat variable in size but would I be using something like

bar\_mc.\_xscale = (text\_txt.\_height (with math))

personally I would like to always have the bar the same size but I can’t quite figure it out.
