# \[cs3\] adding a scroll bar to a text field created with AS 3.0

**URL:** <https://forum.kirupa.com/t/cs3-adding-a-scroll-bar-to-a-text-field-created-with-as-3-0/265548>\
**Category:** flash\
**Created:** [July 10, 2008, 4:39am UTC](https://forum.kirupa.com/t/cs3-adding-a-scroll-bar-to-a-text-field-created-with-as-3-0/265548 "2008-07-10T04:39:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gar\_Fonz](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Gar\_Fonz](https://forum.kirupa.com/u/Gar_Fonz)\
**Post date:** [July 10, 2008, 4:39am UTC](https://forum.kirupa.com/t/cs3-adding-a-scroll-bar-to-a-text-field-created-with-as-3-0/265548/1 "2008-07-10T04:39:52Z")

</div>

I was wondering if there’s a way to add a scroll bar to a textfield that is created with actionscript?

---

<div class="post-metadata">

**Author:** ![Gar\_Fonz](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Gar\_Fonz](https://forum.kirupa.com/u/Gar_Fonz)\
**Post date:** [July 10, 2008, 6:41am UTC](https://forum.kirupa.com/t/cs3-adding-a-scroll-bar-to-a-text-field-created-with-as-3-0/265548/2 "2008-07-10T06:41:16Z")

</div>

I finally found it.

use the code:

```auto
 scrollerBar.scrollTarget = txtField; 

```
