<?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: ActionScript Spellchecker for Flash Textfields (with source code and example)</title>
	<atom:link href="http://apdevblog.com/actionscript-spellchecker-for-flash-textfields-with-source-code-and-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://apdevblog.com/actionscript-spellchecker-for-flash-textfields-with-source-code-and-example/</link>
	<description>flash and actioscript development</description>
	<lastBuildDate>Thu, 09 Feb 2012 11:58:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Adrian</title>
		<link>http://apdevblog.com/actionscript-spellchecker-for-flash-textfields-with-source-code-and-example/comment-page-1/#comment-1631</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Thu, 13 Oct 2011 23:11:32 +0000</pubDate>
		<guid isPermaLink="false">http://apdevblog.com/?p=689#comment-1631</guid>
		<description>Any spanish diccionari or é á ó acept</description>
		<content:encoded><![CDATA[<p>Any spanish diccionari or é á ó acept</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://apdevblog.com/actionscript-spellchecker-for-flash-textfields-with-source-code-and-example/comment-page-1/#comment-1528</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Wed, 09 Feb 2011 07:43:35 +0000</pubDate>
		<guid isPermaLink="false">http://apdevblog.com/?p=689#comment-1528</guid>
		<description>hi kyle.
thanks for the additions - i&#039;ll definitely check them out.

best
phil</description>
		<content:encoded><![CDATA[<p>hi kyle.<br />
thanks for the additions &#8211; i&#8217;ll definitely check them out.</p>
<p>best<br />
phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kyle</title>
		<link>http://apdevblog.com/actionscript-spellchecker-for-flash-textfields-with-source-code-and-example/comment-page-1/#comment-1527</link>
		<dc:creator>kyle</dc:creator>
		<pubDate>Tue, 08 Feb 2011 02:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://apdevblog.com/?p=689#comment-1527</guid>
		<description>If anyone would like to help support highlighting words that wrap two lines let me know.
I&#039;m working on it, but not sure how soon i can have it working.

Cheers</description>
		<content:encoded><![CDATA[<p>If anyone would like to help support highlighting words that wrap two lines let me know.<br />
I&#8217;m working on it, but not sure how soon i can have it working.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kyle</title>
		<link>http://apdevblog.com/actionscript-spellchecker-for-flash-textfields-with-source-code-and-example/comment-page-1/#comment-1526</link>
		<dc:creator>kyle</dc:creator>
		<pubDate>Tue, 08 Feb 2011 02:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://apdevblog.com/?p=689#comment-1526</guid>
		<description>I also noticed a problem when you allow multiline textfields and someone has hit the &quot;ENTER&quot; key to move down to a new paragraph and they miss spell the first word at the last line of the textfield..

here&#039;s the fix

var begin:int = inputValue.lastIndexOf(&quot; &quot;,index);
if (begin &gt;= 0) {
   inputValue = inputValue.substr(begin + 1);
}else if(begin == -1){ // if we can&#039;t find a word then check the first Char in the paragraph 
   begin = _txt.getFirstCharInParagraph(index);
   inputValue = inputValue.substr(begin);
}</description>
		<content:encoded><![CDATA[<p>I also noticed a problem when you allow multiline textfields and someone has hit the &#8220;ENTER&#8221; key to move down to a new paragraph and they miss spell the first word at the last line of the textfield..</p>
<p>here&#8217;s the fix</p>
<p>var begin:int = inputValue.lastIndexOf(&#8221; &#8220;,index);<br />
if (begin &gt;= 0) {<br />
   inputValue = inputValue.substr(begin + 1);<br />
}else if(begin == -1){ // if we can&#8217;t find a word then check the first Char in the paragraph<br />
   begin = _txt.getFirstCharInParagraph(index);<br />
   inputValue = inputValue.substr(begin);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kyle</title>
		<link>http://apdevblog.com/actionscript-spellchecker-for-flash-textfields-with-source-code-and-example/comment-page-1/#comment-1525</link>
		<dc:creator>kyle</dc:creator>
		<pubDate>Tue, 08 Feb 2011 02:11:23 +0000</pubDate>
		<guid isPermaLink="false">http://apdevblog.com/?p=689#comment-1525</guid>
		<description>I noticed you aren&#039;t taking into account fields with horizontal scrolling..
So i took the liberty and fixed the code so that it will not draw the dots if the word is not visible horizontally and it will always draw the dots in the correct spot if the text is scrolling horizontally aswell.

cheers


updated code:

// get vals for drawing highlight
var x1:int = rect1.x - _txt.scrollH;

// take the horizontal scroll into account
var x2:int = (rect2.x + rect2.width - _txt.scrollH); 
var y1:int = rect1.y + metrics.ascent + 2;

// if half the word is outside of the textfield cause of scroll only draw what is visible
var w:Number = Math.max(0,Math.min((x2 - x1), _txt.width - x1))</description>
		<content:encoded><![CDATA[<p>I noticed you aren&#8217;t taking into account fields with horizontal scrolling..<br />
So i took the liberty and fixed the code so that it will not draw the dots if the word is not visible horizontally and it will always draw the dots in the correct spot if the text is scrolling horizontally aswell.</p>
<p>cheers</p>
<p>updated code:</p>
<p>// get vals for drawing highlight<br />
var x1:int = rect1.x &#8211; _txt.scrollH;</p>
<p>// take the horizontal scroll into account<br />
var x2:int = (rect2.x + rect2.width &#8211; _txt.scrollH);<br />
var y1:int = rect1.y + metrics.ascent + 2;</p>
<p>// if half the word is outside of the textfield cause of scroll only draw what is visible<br />
var w:Number = Math.max(0,Math.min((x2 &#8211; x1), _txt.width &#8211; x1))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://apdevblog.com/actionscript-spellchecker-for-flash-textfields-with-source-code-and-example/comment-page-1/#comment-1504</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Fri, 24 Dec 2010 12:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://apdevblog.com/?p=689#comment-1504</guid>
		<description>hi john,
which code did you try?
this one? http://apdevblog.com/examples/apdev_spellchecker/apdev-spellchecker-example-cs4.zip

haven&#039;t tried it for a while but should still work.

phil</description>
		<content:encoded><![CDATA[<p>hi john,<br />
which code did you try?<br />
this one? <a href="http://apdevblog.com/examples/apdev_spellchecker/apdev-spellchecker-example-cs4.zip" rel="nofollow"></a><a href='http://apdevblog.com/examples/apdev_spellchecker/apdev-spellchecker-example-cs4.zip'>http://apdevblog.com/examples/apdev_spellchecker/apdev-spellchecker-example-cs4.zip</a></p>
<p>haven&#8217;t tried it for a while but should still work.</p>
<p>phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Romain</title>
		<link>http://apdevblog.com/actionscript-spellchecker-for-flash-textfields-with-source-code-and-example/comment-page-1/#comment-1503</link>
		<dc:creator>John Romain</dc:creator>
		<pubDate>Thu, 23 Dec 2010 15:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://apdevblog.com/?p=689#comment-1503</guid>
		<description>Hi,

Trying to get your code to work but I get the following two errors. Is there an updated version of the source? Thanks for your help.

Line 84 - 1136: Incorrect number of arguments.  Expected 1.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Trying to get your code to work but I get the following two errors. Is there an updated version of the source? Thanks for your help.</p>
<p>Line 84 &#8211; 1136: Incorrect number of arguments.  Expected 1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AS程序员实用工具类 ｜ 鸡毛一样飞。。</title>
		<link>http://apdevblog.com/actionscript-spellchecker-for-flash-textfields-with-source-code-and-example/comment-page-1/#comment-1499</link>
		<dc:creator>AS程序员实用工具类 ｜ 鸡毛一样飞。。</dc:creator>
		<pubDate>Mon, 13 Dec 2010 10:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://apdevblog.com/?p=689#comment-1499</guid>
		<description>[...] ActionScript Spellchecker for Flash Textfields 这个类允许你使用TextField中的拼写检查功能。现在，你能右键单击拼错的单词并且从字典中加载上下文的建议。 [...]</description>
		<content:encoded><![CDATA[<p>[...] ActionScript Spellchecker for Flash Textfields 这个类允许你使用TextField中的拼写检查功能。现在，你能右键单击拼错的单词并且从字典中加载上下文的建议。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 7款小而强大的TextField类 - ChinemitBlog</title>
		<link>http://apdevblog.com/actionscript-spellchecker-for-flash-textfields-with-source-code-and-example/comment-page-1/#comment-1385</link>
		<dc:creator>7款小而强大的TextField类 - ChinemitBlog</dc:creator>
		<pubDate>Fri, 29 Oct 2010 05:00:07 +0000</pubDate>
		<guid isPermaLink="false">http://apdevblog.com/?p=689#comment-1385</guid>
		<description>[...] ActionScript Spellchecker for Flash Textfields 这个类允许你使用TextField中的拼写检查功能。现在，你能右键单击拼错的单词并且从字典中加载上下文的建议。 [...]</description>
		<content:encoded><![CDATA[<p>[...] ActionScript Spellchecker for Flash Textfields 这个类允许你使用TextField中的拼写检查功能。现在，你能右键单击拼错的单词并且从字典中加载上下文的建议。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 火柴工作坊 &#187; AS程序员实用工具类</title>
		<link>http://apdevblog.com/actionscript-spellchecker-for-flash-textfields-with-source-code-and-example/comment-page-1/#comment-1335</link>
		<dc:creator>火柴工作坊 &#187; AS程序员实用工具类</dc:creator>
		<pubDate>Mon, 20 Sep 2010 06:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://apdevblog.com/?p=689#comment-1335</guid>
		<description>[...] ActionScript Spellchecker for Flash Textfields 这个类允许你使用TextField中的拼写检查功能。现在，你能右键单击拼错的单词并且从字典中加载上下文的建议。 [...]</description>
		<content:encoded><![CDATA[<p>[...] ActionScript Spellchecker for Flash Textfields 这个类允许你使用TextField中的拼写检查功能。现在，你能右键单击拼错的单词并且从字典中加载上下文的建议。 [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

