AS3 input field question

is there a way to limit the amount of chars in a input text field?