<?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"
	>
<channel>
	<title>Comments on: Databinding to read-only properties in Flex 2</title>
	<atom:link href="http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/</link>
	<description>Confessions of a serial code abuser</description>
	<pubDate>Sat, 11 Oct 2008 03:28:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: pascixqanwaj</title>
		<link>http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-59838</link>
		<dc:creator>pascixqanwaj</dc:creator>
		<pubDate>Thu, 11 Sep 2008 04:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-59838</guid>
		<description>&lt;a href="http://hudgens.greatnuke.com" rel="nofollow"&gt;nude pics of vanessa hudgens&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://hudgens.greatnuke.com" rel="nofollow">nude pics of vanessa hudgens</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mvegtodiwk</title>
		<link>http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-34072</link>
		<dc:creator>mvegtodiwk</dc:creator>
		<pubDate>Sun, 23 Dec 2007 16:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-34072</guid>
		<description>&lt;a href="http://friendfinder.forumcommunity.net" rel="nofollow"&gt;adult friend finder login&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://friendfinder.forumcommunity.net" rel="nofollow">adult friend finder login</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zodsydnymqo</title>
		<link>http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-33837</link>
		<dc:creator>zodsydnymqo</dc:creator>
		<pubDate>Fri, 21 Dec 2007 00:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-33837</guid>
		<description>&lt;a href="http://hotchicks.forumcommunity.net" rel="nofollow"&gt;hot latino chicks&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://hotchicks.forumcommunity.net" rel="nofollow">hot latino chicks</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ndiqolaljo</title>
		<link>http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-33109</link>
		<dc:creator>ndiqolaljo</dc:creator>
		<pubDate>Wed, 12 Dec 2007 13:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-33109</guid>
		<description>&lt;a href="http://friendmom.webng.com/nude-naked-soccer-moms.html" rel="nofollow"&gt;nude naked soccer moms&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://friendmom.webng.com/nude-naked-soccer-moms.html" rel="nofollow">nude naked soccer moms</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-31435</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 19 Nov 2007 08:44:45 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-31435</guid>
		<description>You can throw an exception from a setter, but that's a runtime error that you may or may not notice before your product ships. And failing silently, as in your example, might lead to code that's difficult to debug when you forget that the property was supposed to be read-only.

If you create a read-only property in the way I've shown, you'll get a compile-time error when you try to set that property.</description>
		<content:encoded><![CDATA[<p>You can throw an exception from a setter, but that&#8217;s a runtime error that you may or may not notice before your product ships. And failing silently, as in your example, might lead to code that&#8217;s difficult to debug when you forget that the property was supposed to be read-only.</p>
<p>If you create a read-only property in the way I&#8217;ve shown, you&#8217;ll get a compile-time error when you try to set that property.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Buhacoff</title>
		<link>http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-30733</link>
		<dc:creator>Jonathan Buhacoff</dc:creator>
		<pubDate>Thu, 15 Nov 2007 04:53:49 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-30733</guid>
		<description>Seems to me there's an easier way:

[Bindable]
public function get myProp():String {
return _myProp;
}
public function set myProp(value:String) {
// do nothing, since the property is publicly read only, or... is it possible to throw exceptions from setters ?
}

private function businessLogic() {
  // update _myProp as needed
}</description>
		<content:encoded><![CDATA[<p>Seems to me there&#8217;s an easier way:</p>
<p>[Bindable]<br />
public function get myProp():String {<br />
return _myProp;<br />
}<br />
public function set myProp(value:String) {<br />
// do nothing, since the property is publicly read only, or&#8230; is it possible to throw exceptions from setters ?<br />
}</p>
<p>private function businessLogic() {<br />
  // update _myProp as needed<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-23695</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 14 Aug 2007 17:16:47 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-23695</guid>
		<description>Actually, with Rasheed's post the myProp setter function will silently be made public by the Flex compiler, since you can't have a getter and setter with different scopes. At least, this is what happens in Flex 2 - I haven't tested this with Flex 2.01 or Flex 3, so your mileage may vary.</description>
		<content:encoded><![CDATA[<p>Actually, with Rasheed&#8217;s post the myProp setter function will silently be made public by the Flex compiler, since you can&#8217;t have a getter and setter with different scopes. At least, this is what happens in Flex 2 - I haven&#8217;t tested this with Flex 2.01 or Flex 3, so your mileage may vary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thomas</title>
		<link>http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-16904</link>
		<dc:creator>thomas</dc:creator>
		<pubDate>Sun, 25 Feb 2007 17:05:09 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-16904</guid>
		<description>For Rasheed's post I would &lt;i&gt;guess&lt;/i&gt; that reflection during compilation sees only if there exists a "set" and removes the complaint, but would subsequently encounter an access runtime error if it were actually invoked (which doesn't happen in this example)</description>
		<content:encoded><![CDATA[<p>For Rasheed&#8217;s post I would <i>guess</i> that reflection during compilation sees only if there exists a &#8220;set&#8221; and removes the complaint, but would subsequently encounter an access runtime error if it were actually invoked (which doesn&#8217;t happen in this example)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rasheed</title>
		<link>http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-16132</link>
		<dc:creator>Rasheed</dc:creator>
		<pubDate>Sun, 11 Feb 2007 03:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-16132</guid>
		<description>WARNING: This is nasty, really, but it works and is to my eye more readable and less cluttered.

You can create a read only property that [Bindable] won't complain about:

[Bindable]
public function get myProp():String {
   return _myProp;
}
private function set myProp(value:String) {
   _myProp = value;
}

I don't know why its allowable but it is :)</description>
		<content:encoded><![CDATA[<p>WARNING: This is nasty, really, but it works and is to my eye more readable and less cluttered.</p>
<p>You can create a read only property that [Bindable] won&#8217;t complain about:</p>
<p>[Bindable]<br />
public function get myProp():String {<br />
   return _myProp;<br />
}<br />
private function set myProp(value:String) {<br />
   _myProp = value;<br />
}</p>
<p>I don&#8217;t know why its allowable but it is <img src='http://dynamicflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rachel maxim</title>
		<link>http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-15533</link>
		<dc:creator>Rachel maxim</dc:creator>
		<pubDate>Mon, 29 Jan 2007 19:11:14 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/#comment-15533</guid>
		<description>Thanks for posting this, I finally have an explanation for why I'm getting this annoying warning...and a solution too! Appreciate it.</description>
		<content:encoded><![CDATA[<p>Thanks for posting this, I finally have an explanation for why I&#8217;m getting this annoying warning&#8230;and a solution too! Appreciate it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
