<?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: Strange behaviour of Tree component</title>
	<atom:link href="http://blog.arnomanders.nl/index.php/archives/strange-behavior-of-tree-component/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.arnomanders.nl/index.php/archives/strange-behavior-of-tree-component/</link>
	<description>Flex, Flash, AIR and everything that is brand new</description>
	<lastBuildDate>Sat, 04 Sep 2010 15:28:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Maikel Sibbald</title>
		<link>http://blog.arnomanders.nl/index.php/archives/strange-behavior-of-tree-component/comment-page-1/#comment-18837</link>
		<dc:creator>Maikel Sibbald</dc:creator>
		<pubDate>Fri, 22 May 2009 09:27:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/?p=234#comment-18837</guid>
		<description>As long as it is working for ya! ;)</description>
		<content:encoded><![CDATA[<p>As long as it is working for ya! ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arno Manders</title>
		<link>http://blog.arnomanders.nl/index.php/archives/strange-behavior-of-tree-component/comment-page-1/#comment-18832</link>
		<dc:creator>Arno Manders</dc:creator>
		<pubDate>Fri, 22 May 2009 07:48:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/?p=234#comment-18832</guid>
		<description>Thank you that did the trick. I also found the solution by just calling that code also on Click and Change event But this is cleaner</description>
		<content:encoded><![CDATA[<p>Thank you that did the trick. I also found the solution by just calling that code also on Click and Change event But this is cleaner</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maikel Sibbald</title>
		<link>http://blog.arnomanders.nl/index.php/archives/strange-behavior-of-tree-component/comment-page-1/#comment-18796</link>
		<dc:creator>Maikel Sibbald</dc:creator>
		<pubDate>Thu, 21 May 2009 10:07:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/?p=234#comment-18796</guid>
		<description>I see what you are doing..... never use data in a creationComplete handler or what so ever. 

In treeItemRenderer.mxml move this part:

if (data.isChild as Boolean){
	            	this.SecondCanvas.x = (data.depth + 1) * 15;
	            	this.mainLabel.setStyle(&quot;left&quot;, 5);
	            	this.mainImage.visible = false;
	            }else{
	            	if (data.depth &lt; 1){
	            		this.mainLabel.setStyle(&quot;fontWeight&quot;,&quot;bold&quot;);
	            	}
	            	this.SecondCanvas.x =  (data.depth) * 25;
	            	if (data.children == null){
	            		this.mainImage.visible = false;
	            		//this.SecondCanvas.x =;
	            		//this.mainLabel.x = 0;
	            	}else{
	            		this.mainLabel.setStyle(&quot;left&quot;, 19);
	            		this.mainImage.visible = true;
	            		//this.SecondCanvas.x = (data.depth + 1) * 20;
	            	}
	            }


To:

override public function set data


Also you start that with a capital letter..... so it would be TreeItemRenderer....mxml will be translated to a actual class.</description>
		<content:encoded><![CDATA[<p>I see what you are doing&#8230;.. never use data in a creationComplete handler or what so ever. </p>
<p>In treeItemRenderer.mxml move this part:</p>
<p>if (data.isChild as Boolean){<br />
	            	this.SecondCanvas.x = (data.depth + 1) * 15;<br />
	            	this.mainLabel.setStyle(&#8220;left&#8221;, 5);<br />
	            	this.mainImage.visible = false;<br />
	            }else{<br />
	            	if (data.depth &lt; 1){<br />
	            		this.mainLabel.setStyle(&#8220;fontWeight&#8221;,&#8221;bold&#8221;);<br />
	            	}<br />
	            	this.SecondCanvas.x =  (data.depth) * 25;<br />
	            	if (data.children == null){<br />
	            		this.mainImage.visible = false;<br />
	            		//this.SecondCanvas.x =;<br />
	            		//this.mainLabel.x = 0;<br />
	            	}else{<br />
	            		this.mainLabel.setStyle(&#8220;left&#8221;, 19);<br />
	            		this.mainImage.visible = true;<br />
	            		//this.SecondCanvas.x = (data.depth + 1) * 20;<br />
	            	}<br />
	            }</p>
<p>To:</p>
<p>override public function set data</p>
<p>Also you start that with a capital letter&#8230;.. so it would be TreeItemRenderer&#8230;.mxml will be translated to a actual class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arno Manders</title>
		<link>http://blog.arnomanders.nl/index.php/archives/strange-behavior-of-tree-component/comment-page-1/#comment-18491</link>
		<dc:creator>Arno Manders</dc:creator>
		<pubDate>Tue, 12 May 2009 13:37:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/?p=234#comment-18491</guid>
		<description>Damn those hamsters!

I disabled the source and uploaded it to &lt;a href=&quot;http://blog.arnomanders.nl/upload/testTree/srcview/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. And I added some links in the post ;)  First time I use a plugin to add a swf inside a post.</description>
		<content:encoded><![CDATA[<p>Damn those hamsters!</p>
<p>I disabled the source and uploaded it to <a href="http://blog.arnomanders.nl/upload/testTree/srcview/" rel="nofollow">here</a>. And I added some links in the post ;)  First time I use a plugin to add a swf inside a post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maikel Sibbald</title>
		<link>http://blog.arnomanders.nl/index.php/archives/strange-behavior-of-tree-component/comment-page-1/#comment-18487</link>
		<dc:creator>Maikel Sibbald</dc:creator>
		<pubDate>Tue, 12 May 2009 13:08:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/?p=234#comment-18487</guid>
		<description>Source is enabled, but I&#039;m getting a scary hamster ;)</description>
		<content:encoded><![CDATA[<p>Source is enabled, but I&#8217;m getting a scary hamster ;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
