<?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 into a TextInput component in Flash using ActionScript 3.0</title>
	<atom:link href="http://actionscriptexamples.com/2008/12/22/restricting-which-characters-a-user-can-type-into-a-textinput-component-in-flash-using-actionscript-30/feed/" rel="self" type="application/rss+xml" />
	<link>http://actionscriptexamples.com/2008/12/22/restricting-which-characters-a-user-can-type-into-a-textinput-component-in-flash-using-actionscript-30/</link>
	<description>A bunch of ActionScript 2.0 and ActionScript 3.0 examples*</description>
	<lastBuildDate>Thu, 22 Jul 2010 14:13:10 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: fernando</title>
		<link>http://actionscriptexamples.com/2008/12/22/restricting-which-characters-a-user-can-type-into-a-textinput-component-in-flash-using-actionscript-30/comment-page-1/#comment-606</link>
		<dc:creator>fernando</dc:creator>
		<pubDate>Tue, 10 Nov 2009 00:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=293#comment-606</guid>
		<description>hi, I`m doing a project for the uni and I need to restrict fields just for letters in these fields.
The code below show how I`m doing. This is not working. I`d like to know what is missing.
Thanks

if (checkBox.selected==true) {
			chvalue_txt.text=newAmount.toFixed(2);
			interestPayable =  (newAmount + loanAmount)* loanTerm * rateA;
			totalPayable = (newAmount + loanAmount + interestPayable);
			mnthlyPayment = totalPayable/(loanTerm * 12);
			firstName=(firstName_txt.text);
			firstName_txt.restrict=&quot;A-z&quot;;
			surName=(surName_txt.text);
			surName_txt.restrict=&quot;A-z&quot;;
			rate_txt.text=rate.toFixed(2);
			interestPayable_txt.text=&quot;£ &quot;+interestPayable.toFixed(2);
			totalPayable_txt.text=&quot;£ &quot;+totalPayable.toFixed(2);
			mnthlyPayment_txt.text=&quot;£ &quot;+mnthlyPayment.toFixed(2);
		} else if (checkBox.selected==false) {
			chvalue_txt.text=&quot;&quot;;
		}
		trace(checkbox);
	}</description>
		<content:encoded><![CDATA[<p>hi, I`m doing a project for the uni and I need to restrict fields just for letters in these fields.<br />
The code below show how I`m doing. This is not working. I`d like to know what is missing.<br />
Thanks</p>
<p>if (checkBox.selected==true) {<br />
			chvalue_txt.text=newAmount.toFixed(2);<br />
			interestPayable =  (newAmount + loanAmount)* loanTerm * rateA;<br />
			totalPayable = (newAmount + loanAmount + interestPayable);<br />
			mnthlyPayment = totalPayable/(loanTerm * 12);<br />
			firstName=(firstName_txt.text);<br />
			firstName_txt.restrict=&#8221;A-z&#8221;;<br />
			surName=(surName_txt.text);<br />
			surName_txt.restrict=&#8221;A-z&#8221;;<br />
			rate_txt.text=rate.toFixed(2);<br />
			interestPayable_txt.text=&#8221;£ &#8220;+interestPayable.toFixed(2);<br />
			totalPayable_txt.text=&#8221;£ &#8220;+totalPayable.toFixed(2);<br />
			mnthlyPayment_txt.text=&#8221;£ &#8220;+mnthlyPayment.toFixed(2);<br />
		} else if (checkBox.selected==false) {<br />
			chvalue_txt.text=&#8221;";<br />
		}<br />
		trace(checkbox);<br />
	}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
