Hi, I've made a textField with an attached scrollBar. Using my_textField.maxscroll I determine when the scrollbar is needed and when I want to hide it (._visible = false). Two events can trigger this:
- when text is added/deleted so that it exceeds/fits inside the textField area
- when the textField is resized
The above one is controlled with a textField.onChange event handler and works flawlessly, the second one, however, causes me some trouble.
Here's what I do:

Code:
textField_mc.my_textField._width = __width;
textField_mc.my_textField._height = __height;
...
textField_mc.my_scrollBar._visible = (textField_mc.my_textField.maxscroll != 1);
The problem seems to be that the .maxscroll value doesn't update directly when the size is changed. As soon as I click on the stage the value is updated, but then I've allready passed the test and the scrollBar remains visible/unvisible.
Is there a way to update or refresh the TextField after it is resized so that all parameters are set according to the new size? Or how else can I get around this problem?