# Automatic scrolling if textbox past height

**URL:** <https://forum.kirupa.com/t/automatic-scrolling-if-textbox-past-height/214738>\
**Category:** Uncategorized\
**Created:** [January 31, 2007, 4:41pm UTC](https://forum.kirupa.com/t/automatic-scrolling-if-textbox-past-height/214738 "2007-01-31T16:41:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saveth](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@saveth](https://forum.kirupa.com/u/saveth)\
**Post date:** [January 31, 2007, 4:41pm UTC](https://forum.kirupa.com/t/automatic-scrolling-if-textbox-past-height/214738/1 "2007-01-31T16:41:40Z")

</div>

Hello,

I am looking for a way to have my content scroll vertically automatically if it is past a certain height. Can someone please point me in the right direction?

Thanks,  
Saveth

```auto
 
var my_format1:TextFormat = new TextFormat();
my_format1.font = "EventFont";
my_format1.size = 50;
my_format1.color = 0xFFFFFF;
 
var my_text2:TextField = this.createTextField("my_text2", this.getNextHighestDepth(), 50, 200, 900, 30);
my_text2.variable = "sLine_02";
my_text2.antiAliasType = "normal";
my_text2.wordWrap = true;
my_text2.autoSize = true;
my_text2.embedFonts = true;
my_text2.setTextFormat(my_format1);
my_text2._x = (Stage.width/2)-(my_text2._width/2);
my_text2._y = (my_text3._y + my_text3._height)+20;

```
