<?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: Undo/Redo for all your TextFields</title>
	<atom:link href="http://jacwright.com/blog/112/undo-redo-for-all-textfields/feed/" rel="self" type="application/rss+xml" />
	<link>http://jacwright.com/blog/112/undo-redo-for-all-textfields/</link>
	<description>Flex, AIR, PHP, etc.</description>
	<lastBuildDate>Fri, 12 Mar 2010 23:40:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Calebmei</title>
		<link>http://jacwright.com/blog/112/undo-redo-for-all-textfields/comment-page-1/#comment-9102</link>
		<dc:creator>Calebmei</dc:creator>
		<pubDate>Thu, 11 Mar 2010 17:48:11 +0000</pubDate>
		<guid isPermaLink="false">http://jacwright.com/blog/?p=112#comment-9102</guid>
		<description>Very nice work! :)</description>
		<content:encoded><![CDATA[<p>Very nice work! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben Seyferth</title>
		<link>http://jacwright.com/blog/112/undo-redo-for-all-textfields/comment-page-1/#comment-9037</link>
		<dc:creator>Ruben Seyferth</dc:creator>
		<pubDate>Tue, 09 Feb 2010 14:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://jacwright.com/blog/?p=112#comment-9037</guid>
		<description>First of all, great addition to basic as3 functionality! 

I did however have some trouble getting it to work. It seems like the event listeners didn&#039;t work. Now I&#039;ve extended the UndoTextFields class and overridden the initializeTarget method, removing the last three paramaters on the addEventListener calls. That did the trick, but I figure you didn&#039;t put those arguments there for nothing. 

Either way, it works great now!</description>
		<content:encoded><![CDATA[<p>First of all, great addition to basic as3 functionality! </p>
<p>I did however have some trouble getting it to work. It seems like the event listeners didn&#8217;t work. Now I&#8217;ve extended the UndoTextFields class and overridden the initializeTarget method, removing the last three paramaters on the addEventListener calls. That did the trick, but I figure you didn&#8217;t put those arguments there for nothing. </p>
<p>Either way, it works great now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pastille</title>
		<link>http://jacwright.com/blog/112/undo-redo-for-all-textfields/comment-page-1/#comment-9031</link>
		<dc:creator>Pastille</dc:creator>
		<pubDate>Sat, 06 Feb 2010 05:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://jacwright.com/blog/?p=112#comment-9031</guid>
		<description>Hi Jac ! thanks for the reply..The problem is that the swc file is not opening through flash 8,so we are unable to access the code.Can you please brief us on how to use the downloaded code and view the actionscript so that we can make changes for it to work on AIR....Its unable to reach gearsandcogs.text,
Please help.Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi Jac ! thanks for the reply..The problem is that the swc file is not opening through flash 8,so we are unable to access the code.Can you please brief us on how to use the downloaded code and view the actionscript so that we can make changes for it to work on AIR&#8230;.Its unable to reach gearsandcogs.text,<br />
Please help.Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Wright</title>
		<link>http://jacwright.com/blog/112/undo-redo-for-all-textfields/comment-page-1/#comment-9030</link>
		<dc:creator>Jacob Wright</dc:creator>
		<pubDate>Fri, 05 Feb 2010 17:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://jacwright.com/blog/?p=112#comment-9030</guid>
		<description>I don&#039;t know what needs to be done to get it working in AIR. Hopefully there is enough code to give you the idea of how it works so that you can fix it or rebuild a solution for your app.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know what needs to be done to get it working in AIR. Hopefully there is enough code to give you the idea of how it works so that you can fix it or rebuild a solution for your app.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pastille</title>
		<link>http://jacwright.com/blog/112/undo-redo-for-all-textfields/comment-page-1/#comment-9029</link>
		<dc:creator>Pastille</dc:creator>
		<pubDate>Fri, 05 Feb 2010 16:11:07 +0000</pubDate>
		<guid isPermaLink="false">http://jacwright.com/blog/?p=112#comment-9029</guid>
		<description>Hi Jac! thanks for the reply...we tried to use your code of undo-redo..but there is some problem..

ReferenceError: Error #1069: Property customItems not found on flash.display.NativeMenu and there is no default value.
	at gearsandcogs.text::UndoTextFields/addContextMenu()[/Users/jacobwright/Projects/libraries/UndoTextFields/src/gearsandcogs/text/UndoTextFields.as:318]
	at gearsandcogs.text::UndoTextFields/getData()[/Users/jacobwright/Projects/libraries/UndoTextFields/src/gearsandcogs/text/UndoTextFields.as:184]
	at gearsandcogs.text::UndoTextFields/saveLastTextState()[/Users/jacobwright/Projects/libraries/UndoTextFields/src/gearsandcogs/text/UndoTextFields.as:154]

Can you please explain the procedure in which we can use the code.We are using Adobe AIR to make a dektop application of a HTML editor for which we are using Adobe flex builder 3.Thanks in advance ! :)</description>
		<content:encoded><![CDATA[<p>Hi Jac! thanks for the reply&#8230;we tried to use your code of undo-redo..but there is some problem..</p>
<p>ReferenceError: Error #1069: Property customItems not found on flash.display.NativeMenu and there is no default value.<br />
	at gearsandcogs.text::UndoTextFields/addContextMenu()[/Users/jacobwright/Projects/libraries/UndoTextFields/src/gearsandcogs/text/UndoTextFields.as:318]<br />
	at gearsandcogs.text::UndoTextFields/getData()[/Users/jacobwright/Projects/libraries/UndoTextFields/src/gearsandcogs/text/UndoTextFields.as:184]<br />
	at gearsandcogs.text::UndoTextFields/saveLastTextState()[/Users/jacobwright/Projects/libraries/UndoTextFields/src/gearsandcogs/text/UndoTextFields.as:154]</p>
<p>Can you please explain the procedure in which we can use the code.We are using Adobe AIR to make a dektop application of a HTML editor for which we are using Adobe flex builder 3.Thanks in advance ! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Wright</title>
		<link>http://jacwright.com/blog/112/undo-redo-for-all-textfields/comment-page-1/#comment-9028</link>
		<dc:creator>Jacob Wright</dc:creator>
		<pubDate>Thu, 04 Feb 2010 23:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://jacwright.com/blog/?p=112#comment-9028</guid>
		<description>Adding line numbers is quite outside the scope of this article. But one idea you might try is using two textfields. One with numbers, the other with the content. The one with numbers should be thin and tall, and have selection=false.

Good luck. If you are doing full syntax highlighting in your project I&#039;d like to see it when it is done.</description>
		<content:encoded><![CDATA[<p>Adding line numbers is quite outside the scope of this article. But one idea you might try is using two textfields. One with numbers, the other with the content. The one with numbers should be thin and tall, and have selection=false.</p>
<p>Good luck. If you are doing full syntax highlighting in your project I&#8217;d like to see it when it is done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pastille</title>
		<link>http://jacwright.com/blog/112/undo-redo-for-all-textfields/comment-page-1/#comment-9027</link>
		<dc:creator>Pastille</dc:creator>
		<pubDate>Thu, 04 Feb 2010 17:28:43 +0000</pubDate>
		<guid isPermaLink="false">http://jacwright.com/blog/?p=112#comment-9027</guid>
		<description>Hi Jac! how can i add line numbers to a text area? Actually we are working on an application where in we have to open files in a  text area.Its basically a HTML editor.
Thanks in advance :)</description>
		<content:encoded><![CDATA[<p>Hi Jac! how can i add line numbers to a text area? Actually we are working on an application where in we have to open files in a  text area.Its basically a HTML editor.<br />
Thanks in advance :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://jacwright.com/blog/112/undo-redo-for-all-textfields/comment-page-1/#comment-8994</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Thu, 14 Jan 2010 15:10:16 +0000</pubDate>
		<guid isPermaLink="false">http://jacwright.com/blog/?p=112#comment-8994</guid>
		<description>OK, I found the problem. If the redo text only contained a \r, the TextField doesn&#039;t insert  the \r in the replaceText() call, although it does format the text as if there is a newline. 

A global replace of \r with \n seems to work.</description>
		<content:encoded><![CDATA[<p>OK, I found the problem. If the redo text only contained a \r, the TextField doesn&#8217;t insert  the \r in the replaceText() call, although it does format the text as if there is a newline. </p>
<p>A global replace of \r with \n seems to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://jacwright.com/blog/112/undo-redo-for-all-textfields/comment-page-1/#comment-8993</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Wed, 13 Jan 2010 21:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://jacwright.com/blog/?p=112#comment-8993</guid>
		<description>Jac, 

Nice work and thanks for making this available to everyone. One problem I ran into is with redo and new lines. 

Using the TextArea in the test app above, if you follow these steps, you&#039;ll get something that looks right, but isn&#039;t in its original state: 
1. Type A, return, T
2. Undo all your typing (cmd+z 3 times)
3. Redo all your typing (cmd+shift+z 3 times)

At this point, the TextArea *looks* like it did when you started, but if you look at the text property, you&#039;ll see that there is no newline character between the A and the T. Weird. 

Any thoughts on what&#039;s preventing the redo of the \r? 

Thanks!</description>
		<content:encoded><![CDATA[<p>Jac, </p>
<p>Nice work and thanks for making this available to everyone. One problem I ran into is with redo and new lines. </p>
<p>Using the TextArea in the test app above, if you follow these steps, you&#8217;ll get something that looks right, but isn&#8217;t in its original state:<br />
1. Type A, return, T<br />
2. Undo all your typing (cmd+z 3 times)<br />
3. Redo all your typing (cmd+shift+z 3 times)</p>
<p>At this point, the TextArea *looks* like it did when you started, but if you look at the text property, you&#8217;ll see that there is no newline character between the A and the T. Weird. </p>
<p>Any thoughts on what&#8217;s preventing the redo of the \r? </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Wright</title>
		<link>http://jacwright.com/blog/112/undo-redo-for-all-textfields/comment-page-1/#comment-8970</link>
		<dc:creator>Jacob Wright</dc:creator>
		<pubDate>Wed, 30 Dec 2009 18:47:31 +0000</pubDate>
		<guid isPermaLink="false">http://jacwright.com/blog/?p=112#comment-8970</guid>
		<description>It only works with regular text, not rich text (bold, italics, etc). You will have to roll your own solution for that. Perhaps the source code can help you see how undo-redo is done and help you on your way. Sorry I can be more helpful.</description>
		<content:encoded><![CDATA[<p>It only works with regular text, not rich text (bold, italics, etc). You will have to roll your own solution for that. Perhaps the source code can help you see how undo-redo is done and help you on your way. Sorry I can be more helpful.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
