<?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 the border from the Halo Tree control in Flex 4</title>
	<atom:link href="http://blog.flexexamples.com/2009/08/28/removing-the-border-from-the-halo-tree-control-in-flex-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2009/08/28/removing-the-border-from-the-halo-tree-control-in-flex-4/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Aidan Mack</title>
		<link>http://blog.flexexamples.com/2009/08/28/removing-the-border-from-the-halo-tree-control-in-flex-4/comment-page-1/#comment-7363</link>
		<dc:creator>Aidan Mack</dc:creator>
		<pubDate>Fri, 26 Mar 2010 08:32:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=1759#comment-7363</guid>
		<description>Superb, thanks for that Peter,
Works a treat. I also noticed last night that if I change the theme to something other than &quot;spark&quot; then the tween starts to work.
But I will use the above code as suggested.

Cracking blog by the way! Its an absolute fountain of knowledge you have built here!

Tar
  Aidan</description>
		<content:encoded><![CDATA[<p>Superb, thanks for that Peter,<br />
Works a treat. I also noticed last night that if I change the theme to something other than &#8220;spark&#8221; then the tween starts to work.<br />
But I will use the above code as suggested.</p>
<p>Cracking blog by the way! Its an absolute fountain of knowledge you have built here!</p>
<p>Tar<br />
  Aidan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2009/08/28/removing-the-border-from-the-halo-tree-control-in-flex-4/comment-page-1/#comment-7355</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 25 Mar 2010 19:11:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=1759#comment-7355</guid>
		<description>@Aidan Mack,

Ah, it&#039;s a bit tricky. The main issue is that you&#039;re comparing a Flex 3 example to a Flex 4 example, and the subtle difference is that the mx:Tree in Flex 4 sets the &lt;code&gt;openDuration&lt;/code&gt; style to 0 milliseconds, whereas in Flex 3 the &lt;code&gt;openDuration&lt;/code&gt; style was 250 milliseconds. You can add the following code to the application to verify:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;mx:Button id=&quot;btn&quot; click=&quot;btn.label = tree1.getStyle(&#039;openDuration&#039;);&quot; /&gt;
&lt;/pre&gt;

If you want to add the easing animation back in Flex 4, simply set the &lt;code&gt;openDuration&lt;/code&gt; style to 250 milliseconds (or whatever you want) using the following snippet:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;mx:Tree id=&quot;tree1&quot;
        openDuration=&quot;250&quot;
        labelField=&quot;@label&quot;
        showRoot=&quot;true&quot;&gt;
    &lt;mx:XMLListCollection id=&quot;MailBox&quot;&gt;
        &lt;fx:XMLList&gt;
            &lt;!-- nodes go here --&gt;
        &lt;/fx:XMLList&gt;
    &lt;/mx:XMLListCollection&gt;
&lt;/mx:Tree&gt;
&lt;/pre&gt;

Or you can change the &lt;code&gt;openDuration&lt;/code&gt; for all mx:Tree controls in your Flex 4 application using a Style block, as seen in the following snippet:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;fx:Style&gt;
    @namespace s &quot;library://ns.adobe.com/flex/spark&quot;;
    @namespace mx &quot;library://ns.adobe.com/flex/mx&quot;;
    
    mx&#124;Tree {
        openDuration: 250;
    }
&lt;/fx:Style&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>@Aidan Mack,</p>
<p>Ah, it&#8217;s a bit tricky. The main issue is that you&#8217;re comparing a Flex 3 example to a Flex 4 example, and the subtle difference is that the mx:Tree in Flex 4 sets the <code>openDuration</code> style to 0 milliseconds, whereas in Flex 3 the <code>openDuration</code> style was 250 milliseconds. You can add the following code to the application to verify:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> id=<span style="color: #ff0000;">&quot;btn&quot;</span> click=<span style="color: #ff0000;">&quot;btn.label = tree1.getStyle('openDuration');&quot;</span> <span style="color: #7400FF;">/&gt;</span></span></pre></div></div>

<p>If you want to add the easing animation back in Flex 4, simply set the <code>openDuration</code> style to 250 milliseconds (or whatever you want) using the following snippet:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Tree</span> id=<span style="color: #ff0000;">&quot;tree1&quot;</span></span>
<span style="color: #000000;">        openDuration=<span style="color: #ff0000;">&quot;250&quot;</span></span>
<span style="color: #000000;">        labelField=<span style="color: #ff0000;">&quot;@label&quot;</span></span>
<span style="color: #000000;">        showRoot=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:XMLListCollection</span> id=<span style="color: #ff0000;">&quot;MailBox&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:XMLList</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- nodes go here --&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:XMLList</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:XMLListCollection</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Tree</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Or you can change the <code>openDuration</code> for all mx:Tree controls in your Flex 4 application using a Style block, as seen in the following snippet:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Style</span><span style="color: #7400FF;">&gt;</span></span>
    @namespace s &quot;library://ns.adobe.com/flex/spark&quot;;
    @namespace mx &quot;library://ns.adobe.com/flex/mx&quot;;
&nbsp;
    mx|Tree {
        openDuration: 250;
    }
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Style</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aidan Mack</title>
		<link>http://blog.flexexamples.com/2009/08/28/removing-the-border-from-the-halo-tree-control-in-flex-4/comment-page-1/#comment-7354</link>
		<dc:creator>Aidan Mack</dc:creator>
		<pubDate>Thu, 25 Mar 2010 16:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=1759#comment-7354</guid>
		<description>Hi Just have quick question,

In the above example, when the label feilds are clicked on  there is NO tween/animation to display their children. However in this one...
http://blog.flexexamples.com/2008/04/05/opening-branches-by-clicking-rows-in-a-tree-control-in-flex/#more-588

...They do tween. For the life of me i caunt see where the code is that does that.
Could you point it out for me?
Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Just have quick question,</p>
<p>In the above example, when the label feilds are clicked on  there is NO tween/animation to display their children. However in this one&#8230;<br />
<a href="http://blog.flexexamples.com/2008/04/05/opening-branches-by-clicking-rows-in-a-tree-control-in-flex/#more-588" rel="nofollow">http://blog.flexexamples.com/2008/04/05/opening-branches-by-clicking-rows-in-a-tree-control-in-flex/#more-588</a></p>
<p>&#8230;They do tween. For the life of me i caunt see where the code is that does that.<br />
Could you point it out for me?<br />
Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

