<?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: Making sure your Flex is initialized</title>
	<atom:link href="http://neilmiddleton.com/2008/03/20/making-sure-your-flex-is-initialized/feed/" rel="self" type="application/rss+xml" />
	<link>http://neilmiddleton.com/2008/03/20/making-sure-your-flex-is-initialized/</link>
	<description></description>
	<pubDate>Fri, 21 Nov 2008 20:50:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Neil</title>
		<link>http://neilmiddleton.com/2008/03/20/making-sure-your-flex-is-initialized/#comment-80639</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Tue, 25 Mar 2008 14:03:17 +0000</pubDate>
		<guid isPermaLink="false">http://neilmiddleton.com/2008/03/20/making-sure-your-flex-is-initialized/#comment-80639</guid>
		<description>@Joe indeed - but it's always better to be safe than sorry ;)</description>
		<content:encoded><![CDATA[<p>@Joe indeed - but it&#8217;s always better to be safe than sorry <img src='http://neilmiddleton.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joeflash</title>
		<link>http://neilmiddleton.com/2008/03/20/making-sure-your-flex-is-initialized/#comment-80620</link>
		<dc:creator>Joeflash</dc:creator>
		<pubDate>Thu, 20 Mar 2008 21:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://neilmiddleton.com/2008/03/20/making-sure-your-flex-is-initialized/#comment-80620</guid>
		<description>Wouldn't it be a better idea to disable user interaction until the Application.creationComplete event has been called?</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t it be a better idea to disable user interaction until the Application.creationComplete event has been called?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Cancil</title>
		<link>http://neilmiddleton.com/2008/03/20/making-sure-your-flex-is-initialized/#comment-80619</link>
		<dc:creator>Eric Cancil</dc:creator>
		<pubDate>Thu, 20 Mar 2008 18:45:41 +0000</pubDate>
		<guid isPermaLink="false">http://neilmiddleton.com/2008/03/20/making-sure-your-flex-is-initialized/#comment-80619</guid>
		<description>oops forgot the getter 

public function get theText():String{
   return _theText;
}</description>
		<content:encoded><![CDATA[<p>oops forgot the getter </p>
<p>public function get theText():String{<br />
   return _theText;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Cancil</title>
		<link>http://neilmiddleton.com/2008/03/20/making-sure-your-flex-is-initialized/#comment-80618</link>
		<dc:creator>Eric Cancil</dc:creator>
		<pubDate>Thu, 20 Mar 2008 18:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://neilmiddleton.com/2008/03/20/making-sure-your-flex-is-initialized/#comment-80618</guid>
		<description>Or you could choose to make things a lot more rigid and have it more like this

private var _theText:String;
private var theTextDirty:Boolean = false;
public var label:Label;

public function set theText(val:String):void{
      _theText = val;
      theTextDirty = true;
      invalidateProperties();
}

override protected function commitProperties():void{

super.commitProperties();

   if(theTextDirty){
      theTextDirty = false;
      label = _theText;
   }
}</description>
		<content:encoded><![CDATA[<p>Or you could choose to make things a lot more rigid and have it more like this</p>
<p>private var _theText:String;<br />
private var theTextDirty:Boolean = false;<br />
public var label:Label;</p>
<p>public function set theText(val:String):void{<br />
      _theText = val;<br />
      theTextDirty = true;<br />
      invalidateProperties();<br />
}</p>
<p>override protected function commitProperties():void{</p>
<p>super.commitProperties();</p>
<p>   if(theTextDirty){<br />
      theTextDirty = false;<br />
      label = _theText;<br />
   }<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
