<?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: Binding read-only accessors in Flex</title>
	<atom:link href="http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex/feed" rel="self" type="application/rss+xml" />
	<link>http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex</link>
	<description>Ruben Swieringa on Actionscript and a whole lot of other stuff..</description>
	<lastBuildDate>Wed, 25 Jan 2012 12:03:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
	<item>
		<title>By: [Bindabale] &#124; RIA???(riaos.com)</title>
		<link>http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex/comment-page-9#comment-131945</link>
		<dc:creator>[Bindabale] &#124; RIA???(riaos.com)</dc:creator>
		<pubDate>Fri, 26 Aug 2011 11:28:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex#comment-131945</guid>
		<description>[...] content?????????????????????????http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex??Ely [...]</description>
		<content:encoded><![CDATA[<p>[...] content?????????????????????????http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex??Ely [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony Corbett</title>
		<link>http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex/comment-page-8#comment-130518</link>
		<dc:creator>Anthony Corbett</dc:creator>
		<pubDate>Fri, 05 Aug 2011 17:35:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex#comment-130518</guid>
		<description>This is exactly what I was looking for. Thanks!

One thing though, wouldn&#039;t you want to check to see if the value is different in the setter before dispatching it that way your binding doesn&#039;t execute unless the value has really changed:

private function set _someProperty (value:String ):void {
   if( __someProperty === value)
            return;

   __someProperty = value;
   dispatchEvent(new Event(&quot;somePropertyChanged&quot;));
}</description>
		<content:encoded><![CDATA[<p>This is exactly what I was looking for. Thanks!</p>
<p>One thing though, wouldn&#8217;t you want to check to see if the value is different in the setter before dispatching it that way your binding doesn&#8217;t execute unless the value has really changed:</p>
<p>private function set _someProperty (value:String ):void {<br />
   if( __someProperty === value)<br />
            return;</p>
<p>   __someProperty = value;<br />
   dispatchEvent(new Event(&#8220;somePropertyChanged&#8221;));<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim John</title>
		<link>http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex/comment-page-8#comment-123009</link>
		<dc:creator>Tim John</dc:creator>
		<pubDate>Fri, 03 Jun 2011 09:45:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex#comment-123009</guid>
		<description>Actually, it doesn&#039;t throw the error, but instead overrides the setter&#039;s namespace so that it isn&#039;t actually read-only...</description>
		<content:encoded><![CDATA[<p>Actually, it doesn&#8217;t throw the error, but instead overrides the setter&#8217;s namespace so that it isn&#8217;t actually read-only&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim John</title>
		<link>http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex/comment-page-8#comment-122896</link>
		<dc:creator>Tim John</dc:creator>
		<pubDate>Thu, 02 Jun 2011 16:23:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex#comment-122896</guid>
		<description>I was thinking this might be the solution. Thanks for demonstrating it so neatly!

@volltrottel I&#039;ve tried what you suggested in the past, but Flex reports a problem if you put a getter and a setter in different namespaces.</description>
		<content:encoded><![CDATA[<p>I was thinking this might be the solution. Thanks for demonstrating it so neatly!</p>
<p>@volltrottel I&#8217;ve tried what you suggested in the past, but Flex reports a problem if you put a getter and a setter in different namespaces.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: volltrottel</title>
		<link>http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex/comment-page-8#comment-120957</link>
		<dc:creator>volltrottel</dc:creator>
		<pubDate>Sat, 07 May 2011 03:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex#comment-120957</guid>
		<description>Defining a private/protected setter accomplishes the same thing.</description>
		<content:encoded><![CDATA[<p>Defining a private/protected setter accomplishes the same thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: onkar</title>
		<link>http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex/comment-page-8#comment-119355</link>
		<dc:creator>onkar</dc:creator>
		<pubDate>Sun, 10 Apr 2011 04:33:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex#comment-119355</guid>
		<description>thanks a lot...</description>
		<content:encoded><![CDATA[<p>thanks a lot&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ????Flex [Bindable] ?????? - ZhaoLoveJing</title>
		<link>http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex/comment-page-7#comment-104331</link>
		<dc:creator>????Flex [Bindable] ?????? - ZhaoLoveJing</dc:creator>
		<pubDate>Wed, 29 Sep 2010 03:55:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex#comment-104331</guid>
		<description>[...] content?????????????????????????http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex ??Ely Greenfield??? Now keep in mind that there’s no way for the compiler to actually [...]</description>
		<content:encoded><![CDATA[<p>[...] content?????????????????????????http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex ??Ely Greenfield??? Now keep in mind that there’s no way for the compiler to actually [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex/comment-page-7#comment-99207</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Fri, 16 Apr 2010 20:38:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex#comment-99207</guid>
		<description>Still useful after all these years...  Thanks!</description>
		<content:encoded><![CDATA[<p>Still useful after all these years&#8230;  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex/comment-page-7#comment-95216</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Mon, 07 Dec 2009 22:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex#comment-95216</guid>
		<description>This was a great gem. Thanks for the post.</description>
		<content:encoded><![CDATA[<p>This was a great gem. Thanks for the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ????Flex [Bindable] ?????? at Adobe Show Center</title>
		<link>http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex/comment-page-7#comment-92702</link>
		<dc:creator>????Flex [Bindable] ?????? at Adobe Show Center</dc:creator>
		<pubDate>Thu, 15 Oct 2009 02:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex#comment-92702</guid>
		<description>[...] ??????content??_wholeText?????????????_wholeText????????????“??”??????????????????????return content?????????????????????????http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex??Ely Greenfield??? [...]</description>
		<content:encoded><![CDATA[<p>[...] ??????content??_wholeText?????????????_wholeText????????????“??”??????????????????????return content?????????????????????????http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex??Ely Greenfield??? [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

