<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Creating a custom icon function on a Flex Tree control</title>
	<link>http://blog.flexexamples.com/2007/11/15/creating-a-custom-icon-function-on-a-flex-tree-control/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Tue, 06 Jan 2009 09:38:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Luca</title>
		<link>http://blog.flexexamples.com/2007/11/15/creating-a-custom-icon-function-on-a-flex-tree-control/#comment-15476</link>
		<author>Luca</author>
		<pubDate>Thu, 11 Sep 2008 09:49:07 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/15/creating-a-custom-icon-function-on-a-flex-tree-control/#comment-15476</guid>
		<description>Hi all.

Thank you for your examples.

But I can't understand how to make it dinamic.

I find the icon path in a XML document, but I'm not able to attach it to a tree...</description>
		<content:encoded><![CDATA[<p>Hi all.</p>
<p>Thank you for your examples.</p>
<p>But I can&#8217;t understand how to make it dinamic.</p>
<p>I find the icon path in a XML document, but I&#8217;m not able to attach it to a tree&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Partha</title>
		<link>http://blog.flexexamples.com/2007/11/15/creating-a-custom-icon-function-on-a-flex-tree-control/#comment-15313</link>
		<author>Partha</author>
		<pubDate>Sat, 06 Sep 2008 07:42:48 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/15/creating-a-custom-icon-function-on-a-flex-tree-control/#comment-15313</guid>
		<description>Hi Peter,

Thanks for your reply, but unfortunately the above example is not working for my case. My application is bit complex. Let me explain how my application is working:

1. Initially I have a static XML, where most are parent node (0'th level) and few of them has child node (1st level). 
2. I call a function from "ItemOpen" property of the tree. This take "TreeEvent". This function fetch data for 2nd level (if the parent level is 0 or 3rd level data if parent level is 1).
3. Again when, newly populated node (whether it is 2nd or 3rd level) is opened the function retrieve 4th level data...so on.

Now, in your example expansion &#38; collasp is handle by "ListEvent" event type. But same thing I could not replicate in my application where we have ""TreeEvent" as event type. 

Not sure, whether I am able to make you understand about the problem or not? But if you have any further more advice then please let me know. It will be great help for me.

Many Thanks

Partha</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>Thanks for your reply, but unfortunately the above example is not working for my case. My application is bit complex. Let me explain how my application is working:</p>
<p>1. Initially I have a static XML, where most are parent node (0&#8242;th level) and few of them has child node (1st level).<br />
2. I call a function from &#8220;ItemOpen&#8221; property of the tree. This take &#8220;TreeEvent&#8221;. This function fetch data for 2nd level (if the parent level is 0 or 3rd level data if parent level is 1).<br />
3. Again when, newly populated node (whether it is 2nd or 3rd level) is opened the function retrieve 4th level data&#8230;so on.</p>
<p>Now, in your example expansion &amp; collasp is handle by &#8220;ListEvent&#8221; event type. But same thing I could not replicate in my application where we have &#8220;&#8221;TreeEvent&#8221; as event type. </p>
<p>Not sure, whether I am able to make you understand about the problem or not? But if you have any further more advice then please let me know. It will be great help for me.</p>
<p>Many Thanks</p>
<p>Partha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/11/15/creating-a-custom-icon-function-on-a-flex-tree-control/#comment-15289</link>
		<author>peterd</author>
		<pubDate>Fri, 05 Sep 2008 15:10:20 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/15/creating-a-custom-icon-function-on-a-flex-tree-control/#comment-15289</guid>
		<description>Partha,

You can try the following: &lt;a href="http://blog.flexexamples.com/2008/04/05/opening-branches-by-clicking-rows-in-a-tree-control-in-flex/" rel="nofollow"&gt;"Opening branches by clicking rows in a Tree control in Flex"&lt;/a&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Partha,</p>
<p>You can try the following: <a href="http://blog.flexexamples.com/2008/04/05/opening-branches-by-clicking-rows-in-a-tree-control-in-flex/" rel="nofollow">&#8220;Opening branches by clicking rows in a Tree control in Flex&#8221;</a></p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Partha</title>
		<link>http://blog.flexexamples.com/2007/11/15/creating-a-custom-icon-function-on-a-flex-tree-control/#comment-15271</link>
		<author>Partha</author>
		<pubDate>Fri, 05 Sep 2008 10:42:54 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/15/creating-a-custom-icon-function-on-a-flex-tree-control/#comment-15271</guid>
		<description>Hi,

The above example is nice one &#38; I do have a same kind of requirement. But after implementing the above concept I'm finding another issue. I don't want to display the default ARROW ("&#62;") icon before the icon images. But once I remove/shade it the tree node expansion does not work. Can you please advice how this can be done?

Many Thanks

Cheers

Partha</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>The above example is nice one &amp; I do have a same kind of requirement. But after implementing the above concept I&#8217;m finding another issue. I don&#8217;t want to display the default ARROW (&#8221;&gt;&#8221;) icon before the icon images. But once I remove/shade it the tree node expansion does not work. Can you please advice how this can be done?</p>
<p>Many Thanks</p>
<p>Cheers</p>
<p>Partha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://blog.flexexamples.com/2007/11/15/creating-a-custom-icon-function-on-a-flex-tree-control/#comment-7114</link>
		<author>Martin</author>
		<pubDate>Thu, 21 Feb 2008 15:56:07 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/15/creating-a-custom-icon-function-on-a-flex-tree-control/#comment-7114</guid>
		<description>Great,

Just what I was looking for.. Keep up the good work!! ps. maybee you can have a little lighter color on this blog, so it doesnt feel like a warez site..thanks again for the example..</description>
		<content:encoded><![CDATA[<p>Great,</p>
<p>Just what I was looking for.. Keep up the good work!! ps. maybee you can have a little lighter color on this blog, so it doesnt feel like a warez site..thanks again for the example..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.flexexamples.com/2007/11/15/creating-a-custom-icon-function-on-a-flex-tree-control/#comment-5398</link>
		<author>Anonymous</author>
		<pubDate>Sun, 23 Dec 2007 18:15:10 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/15/creating-a-custom-icon-function-on-a-flex-tree-control/#comment-5398</guid>
		<description>Is there no way the switch case can be made more dynamic? Is there a way to dynamically create the icon class? Because the switch-case forces me to declare every icon class that I would potentially want to use</description>
		<content:encoded><![CDATA[<p>Is there no way the switch case can be made more dynamic? Is there a way to dynamically create the icon class? Because the switch-case forces me to declare every icon class that I would potentially want to use</p>
]]></content:encoded>
	</item>
</channel>
</rss>
