# Scrollbar component

**URL:** <https://forum.kirupa.com/t/scrollbar-component/96688>\
**Category:** Uncategorized\
**Created:** [December 12, 2003, 8:23am UTC](https://forum.kirupa.com/t/scrollbar-component/96688 "2003-12-12T08:23:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kill\_robot\_kill](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kill_robot_kill/32/359_2.png) [@kill\_robot\_kill](https://forum.kirupa.com/u/kill_robot_kill)\
**Post date:** [December 12, 2003, 8:23am UTC](https://forum.kirupa.com/t/scrollbar-component/96688/1 "2003-12-12T08:23:02Z")

</div>

I have an empty textbox with the basic scroll bar component. Nothing is in the text box so the arrows are greyed out on the scrollbar. I have a button that loads text into the textbox, but the component does not update itself to accomodate text that is larger than the text box.

how can I make it so that the scrollbar changes when text is added…also If I put text in the text box in flash, when I publish it gets the scrollbar fine, but it will not adjust itself when I click on the button that loads different text into the text box. what happens is the scroll bar stays the same regardless on the size of the loaded text.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 12, 2003, 9:17am UTC](https://forum.kirupa.com/t/scrollbar-component/96688/2 "2003-12-12T09:17:01Z")

</div>

I’ve seen/done this before, can you post some code or you fla?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 12, 2003, 8:44pm UTC](https://forum.kirupa.com/t/scrollbar-component/96688/3 "2003-12-12T20:44:56Z")

</div>

Sure, pretty simple example though…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 12, 2003, 9:48pm UTC](https://forum.kirupa.com/t/scrollbar-component/96688/4 "2003-12-12T21:48:21Z")

</div>

Your textbox is dynamic right? Make sure the scrollbar comoponent has the same name as the textbox variable. If you drag and drop the scroll bar component on top of (not next to but literally on top of) the text box it should add the name automatically.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 12, 2003, 10:36pm UTC](https://forum.kirupa.com/t/scrollbar-component/96688/5 "2003-12-12T22:36:18Z")

</div>

Yep its dynamic and the instance name is set and correct.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 12, 2003, 11:41pm UTC](https://forum.kirupa.com/t/scrollbar-component/96688/6 "2003-12-12T23:41:28Z")

</div>

just one thing you may have to change this:  
my\_lv = new LoadVars();  
to this:  
my\_lv = new loadVars();  
(notice the Lowercase l) b/c i was using mx2k4.  
here ya go home-slice:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2003, 12:37am UTC](https://forum.kirupa.com/t/scrollbar-component/96688/7 "2003-12-13T00:37:38Z")

</div>

thanks!
