Hello,
hope below code may help you
*protected* *function* txt_changeHandler(event:TextOperationEvent):*void*
{
*if* (txt.text.length > 0)
{
txt.restrict=*"a-zA-Z0-9_"*
}
*else*
{
txt.restrict=*"a-zA-Z"*
}
}
<s:TextInput id="txt"
restrict="a-zA-Z"
change="txt_changeHandler(event)"/>
Thanks
Gajanan
On Tue, Apr 8, 2014 at 6:01 PM, Naresh <[email protected]> wrote:
> Hi Friends,
>
> I need to Restrict Two conditions in Text Input without using Validations
>
> eg.., 1st Character will be Alphabetic and followed with Alphabetical or
> Numerical and special Character(_ Underscore). No Other special Character
> will be allowed other than (_)underscore.
>
>
> Thanks in Advance
> Naresh
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/flex_india.
> For more options, visit https://groups.google.com/d/optout.
>
--
Thanks & Regards
Gajanan Pawale
Web Engineer
Mob No. 65-90294284
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/flex_india.
For more options, visit https://groups.google.com/d/optout.