Re: [flex_india:35610] Re: Two Conditions in Restrict Text Input without using Validations

2014-04-08 Thread Pawale gajanan
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)

[flex_india:35610] Re: Two Conditions in Restrict Text Input without using Validations

2014-04-08 Thread Naresh
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

[flex_india:35609] Re: Two Conditions in Restrict Text Input without using Validations

2014-04-08 Thread Naresh
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

Re: [flex_india:35608] Two Conditions in Restrict Text Input without using Validations

2014-04-08 Thread Pawale gajanan
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

[flex_india:35607] Two Conditions in Restrict Text Input without using Validations

2014-04-08 Thread Naresh
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