The easiest way is to use the StringValidator and set the maxLength property.  Then in the function that use with the user gesture call Validator.isStructureValid(…)   This assumes that you are using <mx:Model> for data binding.  The nice thing is it will do validation as the text area loses focus and it will be bound to whatever user gesture you have incase the focus does not move from the text area.

 

            -Kent

 


From: [email protected] [mailto:[email protected]] On Behalf Of [EMAIL PROTECTED]
Sent: Friday, June 24, 2005 8:26 AM
To: [email protected]
Subject: [flexcoders] How do you set the amount of characters in a text area control

 

here is what I want to do, I want to have a text area that someone can put no more than a certain number of characters in BUT they also have to put a minimum number of characters in. Sort of like say more than a thousand characters but no more than two thousand. Is there a way to do this?

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to