# Scroll problemo in AS3... anyone, pls?

**URL:** <https://forum.kirupa.com/t/scroll-problemo-in-as3-anyone-pls/259293>\
**Category:** flash\
**Created:** [May 2, 2008, 11:12pm UTC](https://forum.kirupa.com/t/scroll-problemo-in-as3-anyone-pls/259293 "2008-05-02T23:12:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo75](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@Leo75](https://forum.kirupa.com/u/Leo75)\
**Post date:** [May 2, 2008, 11:12pm UTC](https://forum.kirupa.com/t/scroll-problemo-in-as3-anyone-pls/259293/1 "2008-05-02T23:12:56Z")

</div>

Hi there!  
I am using this code to create a scrollbar in a text field in frame 1.  
Everything is working nice.  
But rather than just clicking on the arrows of the scroll bar, i would like that, when reached frame 20, it will scroll by itself.  
I tried by adding 5 to the textBox.y but that was just moving the text block up or down. Wasnt SCROLLING at all! Just moving the text block.  
Can anyone give me a clue how to scroll using just as3 ? 😕  
Thanks.  
Cheers.  
Leo.

```auto

textBox.htmlText = textBox.text;
 
 //sets up the scrollbar
 var vScrollBar:UIScrollBar = new UIScrollBar();
 vScrollBar.scrollTarget = textBox;
 vScrollBar.height = textBox.height;
 vScrollBar.move( textBox.x + textBox.width, textBox.y );
 addChild(vScrollBar);
 vScrollBar.update();

```
