Try:
<mx:Script>
<![CDATA[
                Private function setRestrict():void
{
                txtInput.restrict  ="^’\"";
}
]]>
</mx:Script>

<mx:TextArea id="txtInput" initialize=”setRestrict()”>

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of kotha poornima
Sent: Tuesday, March 03, 2009 8:59 PM
To: flexcoders
Subject: Fw: [flexcoders] Restricting characters in User input controls


Hi All,
Can anyone give me an idea how i can solve this.

Thanks in Advance,
Poornima
----- Forwarded Message ----
From: kotha poornima <[email protected]>
To: flexcoders <[email protected]>
Sent: Tuesday, March 3, 2009 5:20:18 PM
Subject: [flexcoders] Restricting characters in User input controls
Hi,
I want to exclude single quotes and double quotes in the user input
So i coded the statement like this:
<mx:TextArea id="txtInput" restrict="^’\"" />

But iam getting error like this:(Iam not able to exclude double quotes)
Element type "mx:TextArea" must be followed by either attribute specifications, 
">" or "/>"

Can anyone help me out of this.

Thanks in Advance,
Poornima



Reply via email to