<?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: Dealing with asynchronous events, part 2</title>
	<atom:link href="http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/</link>
	<description>music, technology, interfaces</description>
	<lastBuildDate>Sun, 29 Jan 2012 05:22:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: AS3 programming 101 for C/C++ coders - Geeky Derek</title>
		<link>http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/comment-page-1/#comment-282774</link>
		<dc:creator>AS3 programming 101 for C/C++ coders - Geeky Derek</dc:creator>
		<pubDate>Sun, 24 May 2009 07:39:58 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/#comment-282774</guid>
		<description>[...] covering the issues of &#8220;Dealing with asynchronous events&#8221;. So far, he has Part 1, Part 2, and Part 3 available. I strongly recommend reading these articles. They provide a lot of good [...]</description>
		<content:encoded><![CDATA[<p>[...] covering the issues of &#8220;Dealing with asynchronous events&#8221;. So far, he has Part 1, Part 2, and Part 3 available. I strongly recommend reading these articles. They provide a lot of good [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geeky Derek &#187; Blog Archive &#187; AS3 programming 101 for C/C++ coders</title>
		<link>http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/comment-page-1/#comment-265187</link>
		<dc:creator>Geeky Derek &#187; Blog Archive &#187; AS3 programming 101 for C/C++ coders</dc:creator>
		<pubDate>Sun, 22 Mar 2009 20:47:42 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/#comment-265187</guid>
		<description>[...] covering the issues of &#8220;Dealing with asynchronous events&#8221;. So far, he has Part 1, Part 2, and Part 3 available. I strongly recommend reading these articles. They provide a lot of good [...]</description>
		<content:encoded><![CDATA[<p>[...] covering the issues of &#8220;Dealing with asynchronous events&#8221;. So far, he has Part 1, Part 2, and Part 3 available. I strongly recommend reading these articles. They provide a lot of good [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: veeky学习笔记&#187; Blog 存档 &#187; 处理异步事件，第二部分</title>
		<link>http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/comment-page-1/#comment-97294</link>
		<dc:creator>veeky学习笔记&#187; Blog 存档 &#187; 处理异步事件，第二部分</dc:creator>
		<pubDate>Fri, 23 Nov 2007 14:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/#comment-97294</guid>
		<description>[...] 原文地址：http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/ [...]</description>
		<content:encoded><![CDATA[<p>[...] 原文地址：http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/ [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dealing with asynchronous events in Adobe Flex &#171; Florecista&#8217;s Weblog</title>
		<link>http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/comment-page-1/#comment-55253</link>
		<dc:creator>Dealing with asynchronous events in Adobe Flex &#171; Florecista&#8217;s Weblog</dc:creator>
		<pubDate>Mon, 10 Sep 2007 05:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/#comment-55253</guid>
		<description>[...] Dealing with asynchronous events, part 2 [...]</description>
		<content:encoded><![CDATA[<p>[...] Dealing with asynchronous events, part 2 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saqib</title>
		<link>http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/comment-page-1/#comment-25806</link>
		<dc:creator>Saqib</dc:creator>
		<pubDate>Sat, 19 May 2007 09:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/#comment-25806</guid>
		<description>Hi Sho,
I am trying to implement the closure method you have described above. I am having problems with call.handler. The problem is, it is not executing this statement. I have tried copy pasting your code but the problem is still there. Any help?</description>
		<content:encoded><![CDATA[<p>Hi Sho,<br />
I am trying to implement the closure method you have described above. I am having problems with call.handler. The problem is, it is not executing this statement. I have tried copy pasting your code but the problem is still there. Any help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kuwamoto.org &#187; Blog Archive &#187; Asynchronous calls explained</title>
		<link>http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/comment-page-1/#comment-21222</link>
		<dc:creator>kuwamoto.org &#187; Blog Archive &#187; Asynchronous calls explained</dc:creator>
		<pubDate>Wed, 25 Apr 2007 18:11:10 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/#comment-21222</guid>
		<description>[...] Note that this is a more basic (and common?) case than the stuff I was talking about earlier. For more advanced solutions, see here, here and here. From: XXXX@XXXXXXXXX [...]</description>
		<content:encoded><![CDATA[<p>[...] Note that this is a more basic (and common?) case than the stuff I was talking about earlier. For more advanced solutions, see here, here and here. From: XXXX@XXXXXXXXX [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 会上网的猪 &#187; 处理异步事件（第二部分）</title>
		<link>http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/comment-page-1/#comment-15356</link>
		<dc:creator>会上网的猪 &#187; 处理异步事件（第二部分）</dc:creator>
		<pubDate>Thu, 15 Mar 2007 07:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/#comment-15356</guid>
		<description>[...] 原文地址：http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/ [...]</description>
		<content:encoded><![CDATA[<p>[...] 原文地址：http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/ [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hava</title>
		<link>http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/comment-page-1/#comment-607</link>
		<dc:creator>hava</dc:creator>
		<pubDate>Thu, 25 May 2006 07:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/#comment-607</guid>
		<description>Nice. All this talk of closures reminds me of lambdas and Scheme.</description>
		<content:encoded><![CDATA[<p>Nice. All this talk of closures reminds me of lambdas and Scheme.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Riggs</title>
		<link>http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/comment-page-1/#comment-489</link>
		<dc:creator>Brian Riggs</dc:creator>
		<pubDate>Fri, 19 May 2006 18:09:09 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-2/#comment-489</guid>
		<description>Great posts, Sho!  This is a problem I&#039;ve been struggling with since I started developing with Flex 2, and the app I&#039;m working on now has several different solutions to it (evidence of my evolving thinking).

One alternative to solving the multiple calls approach is to have a dedicated responder class to handle the result calls.  On each call invokation, the client class creates a new instance of the responder class and registers the appropriate event listeners on it.  Because multiple successive calls to the same method will generate multiple responder instances, there is no &quot;multiple calls problem&quot; because each responder instance will respond to its own set of events (and be unaware of the others).  (For best practices, the responder class should be made internal to the package since clients don&#039;t need to know, and to enable refactoring.)

That being said, I really like the closure-based solution -- it&#039;s far more readable and compact, and it doesn&#039;t require a second class to handle events.  If I wasn&#039;t nearing a deadline I&#039;d consider refactoring my code... :-)</description>
		<content:encoded><![CDATA[<p>Great posts, Sho!  This is a problem I&#8217;ve been struggling with since I started developing with Flex 2, and the app I&#8217;m working on now has several different solutions to it (evidence of my evolving thinking).</p>
<p>One alternative to solving the multiple calls approach is to have a dedicated responder class to handle the result calls.  On each call invokation, the client class creates a new instance of the responder class and registers the appropriate event listeners on it.  Because multiple successive calls to the same method will generate multiple responder instances, there is no &#8220;multiple calls problem&#8221; because each responder instance will respond to its own set of events (and be unaware of the others).  (For best practices, the responder class should be made internal to the package since clients don&#8217;t need to know, and to enable refactoring.)</p>
<p>That being said, I really like the closure-based solution &#8212; it&#8217;s far more readable and compact, and it doesn&#8217;t require a second class to handle events.  If I wasn&#8217;t nearing a deadline I&#8217;d consider refactoring my code&#8230; :-)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

