<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Restricting which characters a user can type in a TextInput control in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/comment-page-1/#comment-8079</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 06 Jul 2010 19:35:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/#comment-8079</guid>
		<description>@dirk,

You could use a NumberValidator, or just use a NumericStepper or ComboBox control.

Peter</description>
		<content:encoded><![CDATA[<p>@dirk,</p>
<p>You could use a NumberValidator, or just use a NumericStepper or ComboBox control.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dirk</title>
		<link>http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/comment-page-1/#comment-8078</link>
		<dc:creator>dirk</dc:creator>
		<pubDate>Tue, 06 Jul 2010 16:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/#comment-8078</guid>
		<description>hi peter, how do you restrict a range of numbers as from 1 to 12?
Thanks a lot</description>
		<content:encoded><![CDATA[<p>hi peter, how do you restrict a range of numbers as from 1 to 12?<br />
Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: louis</title>
		<link>http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/comment-page-1/#comment-8024</link>
		<dc:creator>louis</dc:creator>
		<pubDate>Mon, 28 Jun 2010 05:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/#comment-8024</guid>
		<description>hi peter, how to restrict enter in a text area. i try restrict=&quot;[^\n]&quot;. 
but didn&#039;t work. thanks</description>
		<content:encoded><![CDATA[<p>hi peter, how to restrict enter in a text area. i try restrict=&#8221;[^\n]&#8220;.<br />
but didn&#8217;t work. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/comment-page-1/#comment-6407</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 19 Nov 2009 23:08:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/#comment-6407</guid>
		<description>@hardik,

&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            protected function init():void {
                txtInput2.restrict = &quot;^\&quot;&quot;;
                
                /* or */
                
                txtInput2.restrict = &#039;^&quot;&#039;;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:TextInput id=&quot;txtInput1&quot; restrict=&quot;^&quot;&quot; /&gt;
    &lt;mx:TextInput id=&quot;txtInput2&quot; initialize=&quot;init();&quot; /&gt;

&lt;/mx:Application&gt; 
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>@hardik,</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            protected function init():void {</span>
<span style="color: #339933;">                txtInput2.restrict = &quot;^\&quot;&quot;;</span>
&nbsp;
<span style="color: #339933;">                /* or */</span>
&nbsp;
<span style="color: #339933;">                txtInput2.restrict = '^&quot;';</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TextInput</span> id=<span style="color: #ff0000;">&quot;txtInput1&quot;</span> restrict=<span style="color: #ff0000;">&quot;^&amp;quot;&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TextInput</span> id=<span style="color: #ff0000;">&quot;txtInput2&quot;</span> initialize=<span style="color: #ff0000;">&quot;init();&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hardik</title>
		<link>http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/comment-page-1/#comment-6397</link>
		<dc:creator>hardik</dc:creator>
		<pubDate>Thu, 19 Nov 2009 10:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/#comment-6397</guid>
		<description>how to restrict double quotes in a text input field</description>
		<content:encoded><![CDATA[<p>how to restrict double quotes in a text input field</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saroj Panda</title>
		<link>http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/comment-page-1/#comment-5785</link>
		<dc:creator>Saroj Panda</dc:creator>
		<pubDate>Wed, 16 Sep 2009 06:53:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/#comment-5785</guid>
		<description>I have to do the validation that user can enter hyphen(-) only once in the textinput. Can anyone help me. Urgent!!</description>
		<content:encoded><![CDATA[<p>I have to do the validation that user can enter hyphen(-) only once in the textinput. Can anyone help me. Urgent!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/comment-page-1/#comment-3269</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 16 Jun 2009 13:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/#comment-3269</guid>
		<description>Using MXML:
&lt;pre class=&quot;code&quot;&gt;
&lt;mx:TextInput id=&quot;textInput&quot;
        restrict=&quot;^&amp;&quot; /&gt;
&lt;/pre&gt;

Using ActionScript:
&lt;pre class=&quot;code&quot;&gt;
private var textInput:TextInput;
private function init():void {
    textInput = new TextInput();
    &lt;strong style=&quot;color:red;&quot;&gt;textInput.restrict = &quot;^&amp;&quot;;&lt;/strong&gt;
    addChild(textInput);
}
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Using MXML:</p>
<pre class="code">
&lt;mx:TextInput id="textInput"
        restrict="^&amp;amp;" /&gt;
</pre>
<p>Using ActionScript:</p>
<pre class="code">
private var textInput:TextInput;
private function init():void {
    textInput = new TextInput();
    <strong style="color:red;">textInput.restrict = &quot;^&amp;&quot;;</strong>
    addChild(textInput);
}
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: how can I exclude &#38;?</title>
		<link>http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/comment-page-1/#comment-3268</link>
		<dc:creator>how can I exclude &#38;?</dc:creator>
		<pubDate>Tue, 16 Jun 2009 10:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/#comment-3268</guid>
		<description>How can I exclude &amp;.

Thanks</description>
		<content:encoded><![CDATA[<p>How can I exclude &amp;.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: missamma</title>
		<link>http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/comment-page-1/#comment-3270</link>
		<dc:creator>missamma</dc:creator>
		<pubDate>Mon, 01 Jun 2009 14:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/#comment-3270</guid>
		<description>Can anypne pls tell me how to restrict the first character of the textInput..?

I mean user the should able to enter a string which starts with only alphabet..?

Regards
Missamma.</description>
		<content:encoded><![CDATA[<p>Can anypne pls tell me how to restrict the first character of the textInput..?</p>
<p>I mean user the should able to enter a string which starts with only alphabet..?</p>
<p>Regards<br />
Missamma.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/comment-page-1/#comment-3267</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Mon, 19 May 2008 15:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/#comment-3267</guid>
		<description>&lt;a href=&quot;http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/#comment-12743&quot; rel=&quot;nofollow&quot;&gt;stream&lt;/a&gt;,

I&#039;ve filed a bug for the issue at http://bugs.adobe.com/jira/browse/SDK-15590 . Feel free to add any other comments to the bug, or subscribe/watch the bug for future updates.

Thanks,
Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2008/05/15/restricting-which-characters-a-user-can-type-in-a-textinput-control-in-flex/#comment-12743" rel="nofollow">stream</a>,</p>
<p>I&#8217;ve filed a bug for the issue at <a href="http://bugs.adobe.com/jira/browse/SDK-15590" rel="nofollow">http://bugs.adobe.com/jira/browse/SDK-15590</a> . Feel free to add any other comments to the bug, or subscribe/watch the bug for future updates.</p>
<p>Thanks,<br />
Peter</p>
]]></content:encoded>
	</item>
</channel>
</rss>

