Hi Vincent,

The requirement is of 3 chars, so you will have to use Numeric
Validator:
Use below code:

 <mx:NumberValidator id="numValidator"  maxValue="99" minValue="-99"
lowerThanMinError="Value should not be less than -99"
exceedsMaxError="Value should not be more than 99"
invalidCharError="Enter Numeric value"
source="{txt1}" property="text" triggerEvent="focusOut"/>

<mx:TextInput width="100" id="txt1" />

hope this resolves ur problem...

On Jun 28, 4:59 pm, Manikandan S <thisismanikan...@gmail.com> wrote:
> Hi Vincent,
>
> Use the following way to achieve your requirement.
>
> *<mx:TextInput maxChars="2" restrict="0-9\-"/>*
>
>
>
>
>
> On Tue, Jun 28, 2011 at 11:49 AM, vincent <privinc...@gmail.com> wrote:
> > hi
> > how i active this
>
> > textinput only accept  -99 to +99  values
> > --
>
> > Thanks & Regards,
>
> > P.Vincent
>
> > Phone*: **9894550494*
>
> > Mail: *privinc...@gmail.com <mjfvasa...@gmail.com>*
>
> > Current Location: *CHENNAI*
> > *
> > *
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Flex India Community" group.
> > To post to this group, send email to flex_india@googlegroups.com.
> > To unsubscribe from this group, send email to
> > flex_india+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/flex_india?hl=en.
>
> --
>
> Regards,
>
> Manikandan.S  <http://www.umoldit.com>
>  <http://www.umoldit.com>- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com.
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to