Max char and restrict letter for TextInput
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Panel title="title" width="500" height="90" layout="horizontal"> <mx:TextInput id="ti1" maxChars="10" restrict="0-9"/> </mx:Panel> </mx:Application>