That’s in the doc.  See use of backslashes.

On 11/13/12 8:54 PM, "markflex2007" <[email protected]> wrote:






Hi,

for mx component. if textinput allow number. I can do this

<mx:TextInput id="textInput"
 restrict="0-9"
 widthInChars="20"
 maxChars="20" />

 but I also want to allow negative sign

 if I did this

 <mx:TextInput id="textInput"
 restrict="-0-9"
 widthInChars="20"
 maxChars="20" />

 I also can type ",."etc

 How to do that if I only allow negative sign and number for mx component.

 Thanks


 Mark






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

Reply via email to