Thanks Nitin.
On Mar 3, 10:07 am, Nitind <[email protected]> wrote:
> Hi Check the code below. It might help
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
> layout="absolute">
> <mx:Script>
> <![CDATA[
> private function onChange(e:Event):void
> {
> var str:String = t1.text;
> if(str.charAt(str.length-1) == "*")
> {
> var arr:Array = str.split("*");
> var str2:String = arr[0] as String;
> str2 += "_";
> t1.text = str2;
> }
> }
> ]]>
> </mx:Script>
>
> <mx:TextInput id="t1" change="onChange(event)"/>
> </mx:Application>
>
> On Mar 3, 8:57 am, Paritosh Bisi <[email protected]> wrote:
>
> > Hi,
>
> > In a textarea is there any way to change character at runtime?
> > Suppose If I try to type abc*xyz, it sholuld look like, abc_xyz. That
> > is I have to replace the character * with _ (At runtime - while
> > typing, that is when user tries to type * it should appear as _ ).
>
> > Thanks in advance,
>
> > Paritosh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---