Skip to content


Issues using maxChars in Flash

I was working on a registration form for my current project and ran into a little trouble setting the maxChars in the textFields. I would set the maxChars on a textField like this.

textField.maxChars = 3;

This should set the max characters to 3 in that textField but when I tested it, in 3 different FireFox browsers, it wasn’t working properly. Once the site was loaded it would let you add 4 characters instead of three but then if you go back and enter new text it would set the max to 3 characters. I thought that was a little weird but I had to get this out quick so I’m offering you a quick fix on this problem.

The way I solved this was to set the text to “” right off the bat. So it looked like this,

textField.text = “”;

That solved the problem and should solve it for you as well.

Share and Enjoy:
  • Facebook
  • Twitter
  • del.icio.us
  • Google Bookmarks

Posted in Uncategorized.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.