Creating textfield that automatically grows in height onScroll

Hey, i am having problems making my textfield automatically grow in height when the text is taller then the area.

here is what i am doing


     /*
      * push the text so that the first line is visible
      *****/
     txt.scroll = 1; 
     /*
      * loop as long as the maxscroll is > 1
      *****/
     while(txt.maxscroll>1){
     /*
      * increase the size of the textfield height by 1
      *****/
      txt._height++;
     } // loop

all that happens is i go into an infinite loop. When i put in a panic counter (kills loop at 1000) and trace out each incrament, i see that the maxscroll stays at 2… Any ideas what i might be doing wrong?

Echo