<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Papirfly Blog</title>
	<atom:link href="http://papirfly.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://papirfly.wordpress.com</link>
	<description>Papirfly on flash, flex, actionscript</description>
	<lastBuildDate>Mon, 12 Oct 2009 05:47:07 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Do they test at all? by Torbjørn</title>
		<link>http://papirfly.wordpress.com/2009/09/24/dont-they-test-at-all/#comment-115</link>
		<dc:creator>Torbjørn</dc:creator>
		<pubDate>Mon, 12 Oct 2009 05:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://papirfly.wordpress.com/?p=191#comment-115</guid>
		<description>Look like Adobe thinks the same as us - Flashplayer 10.1 allows for a global error event listener that handles any ErrorEvents not handled explicitly. Yay!</description>
		<content:encoded><![CDATA[<p>Look like Adobe thinks the same as us &#8211; Flashplayer 10.1 allows for a global error event listener that handles any ErrorEvents not handled explicitly. Yay!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ErrorEvent &#8211; equivalent to throw new Error? by Derf</title>
		<link>http://papirfly.wordpress.com/2009/03/05/errorevent-equivalent-to-throw-new-error/#comment-109</link>
		<dc:creator>Derf</dc:creator>
		<pubDate>Thu, 01 Oct 2009 01:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://papirfly.wordpress.com/?p=65#comment-109</guid>
		<description>In as3 we don&#039;t have access to EventManager (or whatever its name is), but its has more or less a structure like [eventType][dispatchers][listeners], so when an event is dispatched, this manager can test is the event is an ErrorEvent.
And if there&#039;s no listener registered to this dispatcher/eventType pair, an uncatchable error is thrown.</description>
		<content:encoded><![CDATA[<p>In as3 we don&#8217;t have access to EventManager (or whatever its name is), but its has more or less a structure like [eventType][dispatchers][listeners], so when an event is dispatched, this manager can test is the event is an ErrorEvent.<br />
And if there&#8217;s no listener registered to this dispatcher/eventType pair, an uncatchable error is thrown.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Do they test at all? by Torbjørn</title>
		<link>http://papirfly.wordpress.com/2009/09/24/dont-they-test-at-all/#comment-107</link>
		<dc:creator>Torbjørn</dc:creator>
		<pubDate>Fri, 25 Sep 2009 07:10:33 +0000</pubDate>
		<guid isPermaLink="false">http://papirfly.wordpress.com/?p=191#comment-107</guid>
		<description>The problem is that you can&#039;t try ... catch errors that are the result of an asynchronous operation like eg. load(url) - and external communication is an operation that certainly can fail.

I try to avoid try ... catch - in most cases a if statement does the job, which gives me more readable code as the possible causes of errors are explicitly tested for instead of just generically caught. Another reason to be careful with try ... catch is that throwing errors is time consuming. If you rely on it as code logic, things run a lot slower than necessary</description>
		<content:encoded><![CDATA[<p>The problem is that you can&#8217;t try &#8230; catch errors that are the result of an asynchronous operation like eg. load(url) &#8211; and external communication is an operation that certainly can fail.</p>
<p>I try to avoid try &#8230; catch &#8211; in most cases a if statement does the job, which gives me more readable code as the possible causes of errors are explicitly tested for instead of just generically caught. Another reason to be careful with try &#8230; catch is that throwing errors is time consuming. If you rely on it as code logic, things run a lot slower than necessary</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Do they test at all? by Riccardo Bartoli</title>
		<link>http://papirfly.wordpress.com/2009/09/24/dont-they-test-at-all/#comment-106</link>
		<dc:creator>Riccardo Bartoli</dc:creator>
		<pubDate>Thu, 24 Sep 2009 14:49:52 +0000</pubDate>
		<guid isPermaLink="false">http://papirfly.wordpress.com/?p=191#comment-106</guid>
		<description>Yes it&#039;s a nightmare, but I prefer to catch my errors instead of adding listeners for them (unless needed).

People must learn that everything that can possibly throw an error must be enclosed in this block of code:

try
{
    // your code here
}
catch(e:error)
{
    // catch you error here
}</description>
		<content:encoded><![CDATA[<p>Yes it&#8217;s a nightmare, but I prefer to catch my errors instead of adding listeners for them (unless needed).</p>
<p>People must learn that everything that can possibly throw an error must be enclosed in this block of code:</p>
<p>try<br />
{<br />
    // your code here<br />
}<br />
catch(e:error)<br />
{<br />
    // catch you error here<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Do they test at all? by Torbjørn</title>
		<link>http://papirfly.wordpress.com/2009/09/24/dont-they-test-at-all/#comment-104</link>
		<dc:creator>Torbjørn</dc:creator>
		<pubDate>Thu, 24 Sep 2009 11:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://papirfly.wordpress.com/?p=191#comment-104</guid>
		<description>You&#039;re right - a way of listening for error event globally would be great. But still - handling errors on loaders is a no-brainer.</description>
		<content:encoded><![CDATA[<p>You&#8217;re right &#8211; a way of listening for error event globally would be great. But still &#8211; handling errors on loaders is a no-brainer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Do they test at all? by expertbuddy</title>
		<link>http://papirfly.wordpress.com/2009/09/24/dont-they-test-at-all/#comment-103</link>
		<dc:creator>expertbuddy</dc:creator>
		<pubDate>Thu, 24 Sep 2009 11:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://papirfly.wordpress.com/?p=191#comment-103</guid>
		<description>It keeps remaining that there needs to be a global event handling mechanism which is missing :( in Adobe Flash player rather than controlling the individual errors.</description>
		<content:encoded><![CDATA[<p>It keeps remaining that there needs to be a global event handling mechanism which is missing <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  in Adobe Flash player rather than controlling the individual errors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flex API bug by Torbjørn</title>
		<link>http://papirfly.wordpress.com/2009/07/28/flex-api-bug/#comment-90</link>
		<dc:creator>Torbjørn</dc:creator>
		<pubDate>Wed, 29 Jul 2009 05:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://papirfly.wordpress.com/?p=177#comment-90</guid>
		<description>After posting, I found a situation where this really messes things up. If you compile an Air app, the NativeDragManager will handle all drags. It transfers the dragSource data into a Clipboard instance. Seems reasonable? But Clipboards setData method doesn&#039;t allow parameters to be null at all. So if a value in dragSource was numeric zero, it will be &#039;translated&#039; into null which causes an Error from Clipboard. To be fair - the documentation of Clipboard states that if you use a custom format string (which we are now), the values should be an object reference or clone. But dragSource does not say anything about that.</description>
		<content:encoded><![CDATA[<p>After posting, I found a situation where this really messes things up. If you compile an Air app, the NativeDragManager will handle all drags. It transfers the dragSource data into a Clipboard instance. Seems reasonable? But Clipboards setData method doesn&#8217;t allow parameters to be null at all. So if a value in dragSource was numeric zero, it will be &#8216;translated&#8217; into null which causes an Error from Clipboard. To be fair &#8211; the documentation of Clipboard states that if you use a custom format string (which we are now), the values should be an object reference or clone. But dragSource does not say anything about that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flex API bug by Torbjørn</title>
		<link>http://papirfly.wordpress.com/2009/07/28/flex-api-bug/#comment-89</link>
		<dc:creator>Torbjørn</dc:creator>
		<pubDate>Wed, 29 Jul 2009 05:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://papirfly.wordpress.com/?p=177#comment-89</guid>
		<description>I like your solution better - nice. Haven&#039;t used hasOwnProperty() much.</description>
		<content:encoded><![CDATA[<p>I like your solution better &#8211; nice. Haven&#8217;t used hasOwnProperty() much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flex API bug by Torbjørn</title>
		<link>http://papirfly.wordpress.com/2009/07/28/flex-api-bug/#comment-88</link>
		<dc:creator>Torbjørn</dc:creator>
		<pubDate>Wed, 29 Jul 2009 05:28:27 +0000</pubDate>
		<guid isPermaLink="false">http://papirfly.wordpress.com/?p=177#comment-88</guid>
		<description>Value objects are good in some cases, but it seems unnecessary to create an object to store a single value.  
Yes - casting into int would be a good workaround, as long as it&#039;s int. In this case the number could have decimals. The point is not so much how to work around it, but whether Adobes implementation needs to behave like this or whether it&#039;s a bug.</description>
		<content:encoded><![CDATA[<p>Value objects are good in some cases, but it seems unnecessary to create an object to store a single value.<br />
Yes &#8211; casting into int would be a good workaround, as long as it&#8217;s int. In this case the number could have decimals. The point is not so much how to work around it, but whether Adobes implementation needs to behave like this or whether it&#8217;s a bug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flex API bug by Josh Tynjala</title>
		<link>http://papirfly.wordpress.com/2009/07/28/flex-api-bug/#comment-87</link>
		<dc:creator>Josh Tynjala</dc:creator>
		<pubDate>Tue, 28 Jul 2009 21:01:45 +0000</pubDate>
		<guid isPermaLink="false">http://papirfly.wordpress.com/?p=177#comment-87</guid>
		<description>I&#039;d call it a bug. I think they should simply check to see if the format exists:

if( dataHolder.hasOwnProperty( format ) )
{
    return dataHolder[ format ];
}

This should allow null values too, I think, but not undefined. Like with zero, I could see some potential use-cases for null, though not as common.</description>
		<content:encoded><![CDATA[<p>I&#8217;d call it a bug. I think they should simply check to see if the format exists:</p>
<p>if( dataHolder.hasOwnProperty( format ) )<br />
{<br />
    return dataHolder[ format ];<br />
}</p>
<p>This should allow null values too, I think, but not undefined. Like with zero, I could see some potential use-cases for null, though not as common.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
