Hard code maxChars [MX]

Small question, how do you set the max Characters of a textbox
with AS. I have tried this with know luck

firstName.maxChars=15;

Bill

maxChars set like that with AS only effects user input. No user can input more than that many characters, however AS itself can alter the text to be more than what maxChars is set at.