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

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

I finally found it.

use the code:

 scrollerBar.scrollTarget = txtField;