try this one. but you need to handle text, if user delete the text then may
chance the text appears numeric or underscore at zero index.
[*Bindable*]
*private* *var* pos:Number=0;
*protected* *function* txt_changeHandler(event:TextOperationEvent):*void*
{
*//validateTextInput(txt.text.length)
ok sure i'll try this one
Thanks...
Naresh
On Tuesday, April 8, 2014 3:31:34 PM UTC+5:30, Naresh 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 spec
Thanks friend for the reply,
This code is very useful but small problem here,
After enter the text, when I move cursor to first position, i can write
numeric and _(underscore) special Character.
Thanks in Advance
Naresh
On Tuesday, April 8, 2014 3:31:34 PM UTC+5:30, Naresh wrote:
>
> Hi Friend
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"*
}
}
Thanks
Gajanan
On Tue, Apr 8, 2014 at 6:01 PM, Naresh wrote:
> Hi F
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
5 matches
Mail list logo