<?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: Open Source Flex Component: TreeMap 2.0 (Beta)</title>
	<atom:link href="http://joshblog.net/2008/05/26/open-source-flex-component-treemap-2-beta/feed/" rel="self" type="application/rss+xml" />
	<link>http://joshblog.net/2008/05/26/open-source-flex-component-treemap-2-beta/</link>
	<description>Josh Tynjala explores Flash, Flex, and ActionScript.</description>
	<lastBuildDate>Thu, 11 Mar 2010 19:18:42 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Josh Tynjala</title>
		<link>http://joshblog.net/2008/05/26/open-source-flex-component-treemap-2-beta/comment-page-1/#comment-58763</link>
		<dc:creator>Josh Tynjala</dc:creator>
		<pubDate>Tue, 21 Oct 2008 01:36:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/?p=238#comment-58763</guid>
		<description>Devver, it seems you copied your XML directly instead of reformatting it, so my blog software just stripped most of it out. I edited your comment above to make it obvious that the code is missing.

To answer your question, if your data follows a different structure than the default XML handler (called a data descriptor) used by Tree and TreeMap, then you need to create your own custom data descriptor.

You&#039;ll want to implement the interface mx.controls.treeClasses.ITreeDataDescriptor (and possibly ITreeDataDescriptor2). See mx.controls.treeClasses.DefaultDataDescriptor to see how Adobe implemented the default version.</description>
		<content:encoded><![CDATA[<p>Devver, it seems you copied your XML directly instead of reformatting it, so my blog software just stripped most of it out. I edited your comment above to make it obvious that the code is missing.</p>
<p>To answer your question, if your data follows a different structure than the default XML handler (called a data descriptor) used by Tree and TreeMap, then you need to create your own custom data descriptor.</p>
<p>You&#8217;ll want to implement the interface mx.controls.treeClasses.ITreeDataDescriptor (and possibly ITreeDataDescriptor2). See mx.controls.treeClasses.DefaultDataDescriptor to see how Adobe implemented the default version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devver</title>
		<link>http://joshblog.net/2008/05/26/open-source-flex-component-treemap-2-beta/comment-page-1/#comment-58761</link>
		<dc:creator>Devver</dc:creator>
		<pubDate>Tue, 21 Oct 2008 00:45:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/?p=238#comment-58761</guid>
		<description>I am attempting to use this component but with a different structure for the xml, but I seem to be failing miserably. 

The structure you outline in your sample is like so 

[Removed by blog software. Use &lt;tagname&gt; in the future!]

The system I am working with does not use this format. It returns data like so 

[Removed by blog software. Use &lt;tagname&gt; in the future!]

I have tried allot of things but the component does not seem to be able to handle this structure. What is need to support this style.</description>
		<content:encoded><![CDATA[<p>I am attempting to use this component but with a different structure for the xml, but I seem to be failing miserably. </p>
<p>The structure you outline in your sample is like so </p>
<p>[Removed by blog software. Use &amp;lt;tagname&amp;gt; in the future!]</p>
<p>The system I am working with does not use this format. It returns data like so </p>
<p>[Removed by blog software. Use &amp;lt;tagname&amp;gt; in the future!]</p>
<p>I have tried allot of things but the component does not seem to be able to handle this structure. What is need to support this style.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Open Source Flex Component: HeatMap - Josh Talks Flash</title>
		<link>http://joshblog.net/2008/05/26/open-source-flex-component-treemap-2-beta/comment-page-1/#comment-55667</link>
		<dc:creator>Open Source Flex Component: HeatMap - Josh Talks Flash</dc:creator>
		<pubDate>Tue, 16 Sep 2008 19:09:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/?p=238#comment-55667</guid>
		<description>[...] the process of building this component very straightforward. There are many similarities to my treemap component, but the heatmap is a bit simpler in many regards. One thing I particularly enjoyed about building [...]</description>
		<content:encoded><![CDATA[<p>[...] the process of building this component very straightforward. There are many similarities to my treemap component, but the heatmap is a bit simpler in many regards. One thing I particularly enjoyed about building [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nola Programmer</title>
		<link>http://joshblog.net/2008/05/26/open-source-flex-component-treemap-2-beta/comment-page-1/#comment-52322</link>
		<dc:creator>Nola Programmer</dc:creator>
		<pubDate>Mon, 28 Jul 2008 18:46:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/?p=238#comment-52322</guid>
		<description>yeah thats that part I can&#039;t figure out, I thought I duplicated everything.  Anyway now I have a workaround so I can just tinker with it at my leisure, eventually I&#039;ll find it.  Something to do with the 
itemToToolTip function.</description>
		<content:encoded><![CDATA[<p>yeah thats that part I can&#8217;t figure out, I thought I duplicated everything.  Anyway now I have a workaround so I can just tinker with it at my leisure, eventually I&#8217;ll find it.  Something to do with the<br />
itemToToolTip function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Tynjala</title>
		<link>http://joshblog.net/2008/05/26/open-source-flex-component-treemap-2-beta/comment-page-1/#comment-52320</link>
		<dc:creator>Josh Tynjala</dc:creator>
		<pubDate>Mon, 28 Jul 2008 18:41:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/?p=238#comment-52320</guid>
		<description>The default creationPolicy only creates components once they&#039;re visible. When you view the second treemap first, the first treemap isn&#039;t shown, so it doesn&#039;t get created right away. Some of your code that references the first treemap is running, but the first treemap is still null.</description>
		<content:encoded><![CDATA[<p>The default creationPolicy only creates components once they&#8217;re visible. When you view the second treemap first, the first treemap isn&#8217;t shown, so it doesn&#8217;t get created right away. Some of your code that references the first treemap is running, but the first treemap is still null.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nola Programmer</title>
		<link>http://joshblog.net/2008/05/26/open-source-flex-component-treemap-2-beta/comment-page-1/#comment-52313</link>
		<dc:creator>Nola Programmer</dc:creator>
		<pubDate>Mon, 28 Jul 2008 16:44:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/?p=238#comment-52313</guid>
		<description>creationPolicy=&quot;all&quot; in the TabNavigator fixed the problem.  I&#039;m not sure exactly why though.  as you said, it does increase load time a bit but we can live with that if necessary.

I actually did basically copy all the functions, so I have for example itemToToolTip1() and a completely seperate itemToToolTip2() etc.

I did the same for all of the key functions.

Thanks for the advice there Josh, we really love your Treemap, we think it&#039;s the best we found of several other options we evaluated including some of the commercial ones.

N.P.</description>
		<content:encoded><![CDATA[<p>creationPolicy=&#8221;all&#8221; in the TabNavigator fixed the problem.  I&#8217;m not sure exactly why though.  as you said, it does increase load time a bit but we can live with that if necessary.</p>
<p>I actually did basically copy all the functions, so I have for example itemToToolTip1() and a completely seperate itemToToolTip2() etc.</p>
<p>I did the same for all of the key functions.</p>
<p>Thanks for the advice there Josh, we really love your Treemap, we think it&#8217;s the best we found of several other options we evaluated including some of the commercial ones.</p>
<p>N.P.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Tynjala</title>
		<link>http://joshblog.net/2008/05/26/open-source-flex-component-treemap-2-beta/comment-page-1/#comment-52309</link>
		<dc:creator>Josh Tynjala</dc:creator>
		<pubDate>Mon, 28 Jul 2008 15:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/?p=238#comment-52309</guid>
		<description>Nola, it&#039;s probably caused by the creationPolicy in your TabNavigator. You&#039;re viewing the second TreeMap first, so the first TreeMap hasn&#039;t been created. So, when your itemToToolTip() function is called, treeMap is null. Does your second TreeMap use the same itemToToolTip() function? You might want to give it its own function. Otherwise, in the worst case scenario, you can always set creationPolicy=&quot;always&quot; on the TabNavigator. This setting may impact initial startup performance, though.</description>
		<content:encoded><![CDATA[<p>Nola, it&#8217;s probably caused by the creationPolicy in your TabNavigator. You&#8217;re viewing the second TreeMap first, so the first TreeMap hasn&#8217;t been created. So, when your itemToToolTip() function is called, treeMap is null. Does your second TreeMap use the same itemToToolTip() function? You might want to give it its own function. Otherwise, in the worst case scenario, you can always set creationPolicy=&#8221;always&#8221; on the TabNavigator. This setting may impact initial startup performance, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nola Programmer</title>
		<link>http://joshblog.net/2008/05/26/open-source-flex-component-treemap-2-beta/comment-page-1/#comment-52304</link>
		<dc:creator>Nola Programmer</dc:creator>
		<pubDate>Mon, 28 Jul 2008 14:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/?p=238#comment-52304</guid>
		<description>Hi Josh,

We have been using your treemap in a dashboard successfully for a while now, but I just ran into a problem.  We included the treemap with some other components, each in their own tab.  I made a second treemap on another tab -all within the same mxml file which I know is a bit unorthodox.  Until recently it was working fine, but then I ran into a strange problem.  we used to have the treemap setup so that &quot;treemap1&quot; opened up first, but if we open the second treemap first instead, we get an &quot;error 1009:Cannot access a property or method of a null object reference.&quot; 

It seems to error out in the itemToToolTip function, on the line
if(this.treeMap.dataDescriptor.isBranch(item))

The wierd thing is, if I start with the first treemap, it works fine, if I start with the second treemap, it gives me this error.

I know this is very vague and ill-defined but I was just wondering if you might have any intuition about what may be causing this?</description>
		<content:encoded><![CDATA[<p>Hi Josh,</p>
<p>We have been using your treemap in a dashboard successfully for a while now, but I just ran into a problem.  We included the treemap with some other components, each in their own tab.  I made a second treemap on another tab -all within the same mxml file which I know is a bit unorthodox.  Until recently it was working fine, but then I ran into a strange problem.  we used to have the treemap setup so that &#8220;treemap1&#8243; opened up first, but if we open the second treemap first instead, we get an &#8220;error 1009:Cannot access a property or method of a null object reference.&#8221; </p>
<p>It seems to error out in the itemToToolTip function, on the line<br />
if(this.treeMap.dataDescriptor.isBranch(item))</p>
<p>The wierd thing is, if I start with the first treemap, it works fine, if I start with the second treemap, it gives me this error.</p>
<p>I know this is very vague and ill-defined but I was just wondering if you might have any intuition about what may be causing this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Tynjala</title>
		<link>http://joshblog.net/2008/05/26/open-source-flex-component-treemap-2-beta/comment-page-1/#comment-48267</link>
		<dc:creator>Josh Tynjala</dc:creator>
		<pubDate>Fri, 30 May 2008 16:08:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/?p=238#comment-48267</guid>
		<description>Thanks, Maz. I&#039;m glad you found it useful.</description>
		<content:encoded><![CDATA[<p>Thanks, Maz. I&#8217;m glad you found it useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maz</title>
		<link>http://joshblog.net/2008/05/26/open-source-flex-component-treemap-2-beta/comment-page-1/#comment-48249</link>
		<dc:creator>Maz</dc:creator>
		<pubDate>Fri, 30 May 2008 11:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/?p=238#comment-48249</guid>
		<description>I just checkouted your component (beta2) and I am impressed. Wo. Thanks for putting those pieces together, that&#039;s great. Everything is well seperated (I may reuse only the SquareLayoutStrategy in one of my projects..)

Thanks

{Maz}</description>
		<content:encoded><![CDATA[<p>I just checkouted your component (beta2) and I am impressed. Wo. Thanks for putting those pieces together, that&#8217;s great. Everything is well seperated (I may reuse only the SquareLayoutStrategy in one of my projects..)</p>
<p>Thanks</p>
<p>{Maz}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
