# Multiple scrollbar asignments

**URL:** https://forum.kirupa.com/t/multiple-scrollbar-asignments/16562
**Category:** flash
**Created:** [March 26, 2003, 6:34am UTC](https://forum.kirupa.com/t/multiple-scrollbar-asignments/16562 "2003-03-26T06:34:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![barzalou1](https://avatars.discourse-cdn.com/v4/letter/b/58f4c7/32.png) [@barzalou1](https://forum.kirupa.com/u/barzalou1)
#### Post date: [March 26, 2003, 6:34am UTC](https://forum.kirupa.com/t/multiple-scrollbar-asignments/16562/1 "2003-03-26T06:34:34Z")

</div>

Hello everyone,

I have an anoying problem I hope someone can help me with. On a movie, I have 2 different textfields and I would like to use only one scollbar that will work on either of the textfields depending on which one is being used. I am using the following code to change the scrollbar targets :

\_root.scrollbar2.setScrollTarget(“text\_flag”);  
\_root.scrollbar2.setEnabled(true);

Not only does the scrollbar not show up in the movie but it just won’t work.

Can this be done and if so, … well, help!?!

I switch between both text fields when I click different buttons. If I click a specific one, it gives me content in one textfield and if I click on another button, it gives my content in a different textfield. The reason why I have 2 different textfields in this situation is because the size of both of them is different but the location is the same.

Thank you.

Barzalou1 :sleep:
