Resize Text Field to the Length of the Text in it?

I’m currently trying to create a function that will increase the size of a text field whenever the text in it goes below the text field’s current height. The function will happen whenever my text box’s text is changed.

I’m just switching to AS3, and think I need some help with this problem.