AS2: Adjust text box height (createTextField)

I’m trying to dynamically create a static text field on the stage, but I want it to automatically shrink to the smallest height possible, much like a static text box dragged created using the Text Tool. I don’t know how to get it to work, so hopefully there is an easy answer.

Here’s my code at current:

_root.createTextField("text_box"+i,i,10,10,530,100);
            _root["text_box"+i].type = "static";
            _root["text_box"+i].text = text_arr*;
            _root["text_box"+i].wordWrap = true;
            _root["text_box"+i].multiline = true;

Thanks a lot!

[COLOR=#0000FF]Try:

_root[/COLOR][COLOR=#000000][[/COLOR][COLOR=#FF0000]“text_box”[/COLOR]+i[COLOR=#000000]][/COLOR].autoSize = true;

Great, it works! Thanks guys. I guess I missed that property, because I did read the help file.