[flexcoders] Limiting text input (ComboBox) to numbers

2005-12-08 Thread Ralf Rottmann










Hi there,



How can I limit the possible characters which a user can
enter into a TextInput or ComboBox control to lets say just numbers etc.



R









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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Limiting text input (ComboBox) to numbers

2005-12-08 Thread Darron J. Schall






Ralf Rottmann wrote:

  
  
  
  
  Hi there,
  
  How can I limit the
possible characters which a user can
enter into a TextInput or ComboBox control to lets say just numbers
etc.
  
  R
  


Set the "restrict" property to "0-9"

mx:TextInput id="textInput" restrict="0-9" /
mx:ComboBox id="combo" editable="true" restrict="0-9" /

-d







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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.