<?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: Removing leaf icons from the Flex Tree control</title>
	<atom:link href="http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 14:19:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dan</title>
		<link>http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/comment-page-1/#comment-6578</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 10 Dec 2009 22:11:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/#comment-6578</guid>
		<description>Great info...thx!
Anyway to have it so that the arrows for folders only appear if the folder has something in it?</description>
		<content:encoded><![CDATA[<p>Great info&#8230;thx!<br />
Anyway to have it so that the arrows for folders only appear if the folder has something in it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohan</title>
		<link>http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/comment-page-1/#comment-4322</link>
		<dc:creator>mohan</dc:creator>
		<pubDate>Wed, 01 Jul 2009 15:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/#comment-4322</guid>
		<description>How to set the Label size when the tree is closed?</description>
		<content:encoded><![CDATA[<p>How to set the Label size when the tree is closed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohan</title>
		<link>http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/comment-page-1/#comment-4321</link>
		<dc:creator>mohan</dc:creator>
		<pubDate>Wed, 01 Jul 2009 15:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/#comment-4321</guid>
		<description>how to increase the size of label</description>
		<content:encoded><![CDATA[<p>how to increase the size of label</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/comment-page-1/#comment-2374</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Mon, 24 Nov 2008 02:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/#comment-2374</guid>
		<description>tony,

Check out the &lt;a href=&quot;http://blog.flexexamples.com/2007/12/06/installing-the-flex-skin-design-extensions-for-cs3-from-adobe-labs/&quot; rel=&quot;nofollow&quot;&gt;&quot;Installing the Flex Skin Design Extensions for CS3 from Adobe Labs&quot;&lt;/a&gt; entry.

Peter</description>
		<content:encoded><![CDATA[<p>tony,</p>
<p>Check out the <a href="http://blog.flexexamples.com/2007/12/06/installing-the-flex-skin-design-extensions-for-cs3-from-adobe-labs/" rel="nofollow">&#8220;Installing the Flex Skin Design Extensions for CS3 from Adobe Labs&#8221;</a> entry.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tony</title>
		<link>http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/comment-page-1/#comment-2373</link>
		<dc:creator>tony</dc:creator>
		<pubDate>Sun, 23 Nov 2008 22:05:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/#comment-2373</guid>
		<description>What to customize the disclosure arrow icon to a +/- icon. How to do that?</description>
		<content:encoded><![CDATA[<p>What to customize the disclosure arrow icon to a +/- icon. How to do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: judah</title>
		<link>http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/comment-page-1/#comment-2372</link>
		<dc:creator>judah</dc:creator>
		<pubDate>Sat, 30 Aug 2008 05:42:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/#comment-2372</guid>
		<description>Hi Peter,

I&#039;m trying to write a tutorial on creating a simple item renderer for the Tree control. Unfortunately I haven&#039;t seen one example online where an item renderer is created in MXML. Can you be the first to create one? In my example I&#039;m using the tree to show a list of items exactly the same as one of the blocks on the sidebar here, http://www.flexcapacitor.com/developer/. At that link I want to replicate the look of the pages section.

This is the code I have so far and it all falls apart:
&lt;pre class=&quot;code&quot;&gt;
&lt;mx:Tree left=&quot;8&quot; rowHeight=&quot;16&quot;
	dataProvider=&quot;{pages1}&quot; labelField=&quot;title&quot; width=&quot;100%&quot;
	styleName=&quot;sideBarTreeStyle&quot; height=&quot;0%&quot; alpha=&quot;1&quot; indentation=&quot;10&quot;
	creationComplete=&quot;{event.currentTarget.openItems = pages1}&quot;&gt;
	&lt;mx:itemRenderer&gt;
		&lt;mx:Component&gt;
			&lt;mx:Canvas width=&quot;100%&quot; height=&quot;100%&quot;&gt;
				&lt;mx:Script&gt;
					&lt;![CDATA[
						import mx.controls.Tree;
					]]&gt;
				&lt;/mx:Script&gt;
				&lt;mx:HBox width=&quot;100%&quot; horizontalGap=&quot;0&quot; height=&quot;100%&quot;&gt;
				&lt;mx:Image source=&quot;images/list_bullet.png&quot;
				horizontalAlign=&quot;center&quot; verticalAlign=&quot;middle&quot;
					visible=&quot;{(!Tree(owner).dataDescriptor.isBranch(data))}&quot;
					includeInLayout=&quot;{(!Tree(owner).dataDescriptor.isBranch(data))}&quot;
					height=&quot;100%&quot;/&gt;
				&lt;mx:Label text=&quot;{data.title}&quot; height=&quot;100%&quot; width=&quot;100%&quot;/&gt;
				&lt;/mx:HBox&gt;
			&lt;/mx:Canvas&gt;
		&lt;/mx:Component&gt;
	&lt;/mx:itemRenderer&gt;
&lt;/mx:Tree&gt;
&lt;/pre&gt;

With this code the indentation is messed up, the label is not positioned correctly and the image is not positioned correctly. Basically everything in my component is not positioned correctly. This code works fine in a list component?

Judah
PS You&#039;ve got to get this installed on this blog, http://txfx.net/code/wordpress/subscribe-to-comments/</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>I&#8217;m trying to write a tutorial on creating a simple item renderer for the Tree control. Unfortunately I haven&#8217;t seen one example online where an item renderer is created in MXML. Can you be the first to create one? In my example I&#8217;m using the tree to show a list of items exactly the same as one of the blocks on the sidebar here, <a href="http://www.flexcapacitor.com/developer/" rel="nofollow">http://www.flexcapacitor.com/developer/</a>. At that link I want to replicate the look of the pages section.</p>
<p>This is the code I have so far and it all falls apart:</p>
<pre class="code">
&lt;mx:Tree left="8" rowHeight="16"
	dataProvider="{pages1}" labelField="title" width="100%"
	styleName="sideBarTreeStyle" height="0%" alpha="1" indentation="10"
	creationComplete="{event.currentTarget.openItems = pages1}"&gt;
	&lt;mx:itemRenderer&gt;
		&lt;mx:Component&gt;
			&lt;mx:Canvas width="100%" height="100%"&gt;
				&lt;mx:Script&gt;
					&lt;![CDATA[
						import mx.controls.Tree;
					]]&gt;
				&lt;/mx:Script&gt;
				&lt;mx:HBox width="100%" horizontalGap="0" height="100%"&gt;
				&lt;mx:Image source="images/list_bullet.png"
				horizontalAlign="center" verticalAlign="middle"
					visible="{(!Tree(owner).dataDescriptor.isBranch(data))}"
					includeInLayout="{(!Tree(owner).dataDescriptor.isBranch(data))}"
					height="100%"/&gt;
				&lt;mx:Label text="{data.title}" height="100%" width="100%"/&gt;
				&lt;/mx:HBox&gt;
			&lt;/mx:Canvas&gt;
		&lt;/mx:Component&gt;
	&lt;/mx:itemRenderer&gt;
&lt;/mx:Tree&gt;
</pre>
<p>With this code the indentation is messed up, the label is not positioned correctly and the image is not positioned correctly. Basically everything in my component is not positioned correctly. This code works fine in a list component?</p>
<p>Judah<br />
PS You&#8217;ve got to get this installed on this blog, <a href="http://txfx.net/code/wordpress/subscribe-to-comments/" rel="nofollow">http://txfx.net/code/wordpress/subscribe-to-comments/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan Solntcev</title>
		<link>http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/comment-page-1/#comment-2375</link>
		<dc:creator>Ivan Solntcev</dc:creator>
		<pubDate>Tue, 29 Jul 2008 12:08:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/#comment-2375</guid>
		<description>Thank you, useful post.</description>
		<content:encoded><![CDATA[<p>Thank you, useful post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick T Evans</title>
		<link>http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/comment-page-1/#comment-2371</link>
		<dc:creator>Patrick T Evans</dc:creator>
		<pubDate>Wed, 16 Jul 2008 21:15:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/25/removing-leaf-icons-from-the-flex-tree-control/#comment-2371</guid>
		<description>This does not work for me in Flex 3. The folders still remain</description>
		<content:encoded><![CDATA[<p>This does not work for me in Flex 3. The folders still remain</p>
]]></content:encoded>
	</item>
</channel>
</rss>

