<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Flex 2.0 Tree with Spring Loaded Folders (Update)</title>
	<atom:link href="http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/</link>
	<description>Impressions, rants, wow moments, general tips, and examples in and around Adobe Flex 2.0</description>
	<lastBuildDate>Sat, 14 Nov 2009 15:58:48 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: lingpri</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-8215</link>
		<dc:creator>lingpri</dc:creator>
		<pubDate>Tue, 21 Apr 2009 20:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-8215</guid>
		<description>I&#039;m loading the XML document using the URLLoader class and providing the dataProvider of the tree as an XMLList.The whole XML document appears as a tree node.Please advise on what i&#039;m doing wrong.

Thanks..

 var loader:URLLoader = new URLLoader();
 loader.addEventListener( Event.COMPLETE, handleComplete );
loader.load(new URLRequest(&quot;sampleData.xml&quot;));

private function handleComplete( event:Event ):void {
       	var example:XML = new XML( event.target.data );
       	Model.instance.opAreaXMLList = example.children();</description>
		<content:encoded><![CDATA[<p>I&#8217;m loading the XML document using the URLLoader class and providing the dataProvider of the tree as an XMLList.The whole XML document appears as a tree node.Please advise on what i&#8217;m doing wrong.</p>
<p>Thanks..</p>
<p> var loader:URLLoader = new URLLoader();<br />
 loader.addEventListener( Event.COMPLETE, handleComplete );<br />
loader.load(new URLRequest(&#8220;sampleData.xml&#8221;));</p>
<p>private function handleComplete( event:Event ):void {<br />
       	var example:XML = new XML( event.target.data );<br />
       	Model.instance.opAreaXMLList = example.children();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arivu</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-8075</link>
		<dc:creator>Arivu</dc:creator>
		<pubDate>Tue, 08 Jul 2008 14:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-8075</guid>
		<description>Hi,
I am using Flex 3, even then i am getting this error

1178: Attempted access of inaccessible property _dropData through a reference with static type mx.controls:Tree.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am using Flex 3, even then i am getting this error</p>
<p>1178: Attempted access of inaccessible property _dropData through a reference with static type mx.controls:Tree.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent from the World of Office Tips &#38; Tricks</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-7488</link>
		<dc:creator>Vincent from the World of Office Tips &#38; Tricks</dc:creator>
		<pubDate>Sun, 13 Jan 2008 13:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-7488</guid>
		<description>I have been reading your articles now for a while and it looks very nice. Thanks Jason

Cheers

Vincent</description>
		<content:encoded><![CDATA[<p>I have been reading your articles now for a while and it looks very nice. Thanks Jason</p>
<p>Cheers</p>
<p>Vincent</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy Choi</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-7059</link>
		<dc:creator>Jimmy Choi</dc:creator>
		<pubDate>Tue, 08 Jan 2008 21:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-7059</guid>
		<description>Thanks Jason. I&#039;d like to mention that another (possibly more robust) way to get around the problem is to disable the open animation by setting openDuration to 0. 

I say that this is possibly more robust because although your solution gets around the crash, I almost always get an incorrectly-rendered tree as someone above has also mentioned. 

Hope this helps!</description>
		<content:encoded><![CDATA[<p>Thanks Jason. I&#8217;d like to mention that another (possibly more robust) way to get around the problem is to disable the open animation by setting openDuration to 0. </p>
<p>I say that this is possibly more robust because although your solution gets around the crash, I almost always get an incorrectly-rendered tree as someone above has also mentioned. </p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-1872</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 29 Aug 2007 18:07:20 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-1872</guid>
		<description>Dark gray on black is very hard to read.  Might want to pick some different colors.</description>
		<content:encoded><![CDATA[<p>Dark gray on black is very hard to read.  Might want to pick some different colors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diamondtearz</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-479</link>
		<dc:creator>diamondtearz</dc:creator>
		<pubDate>Sun, 20 May 2007 14:24:17 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-479</guid>
		<description>I just lost 4 hours of my life that I will never get back battling this bug and the DataDescriptor last night!</description>
		<content:encoded><![CDATA[<p>I just lost 4 hours of my life that I will never get back battling this bug and the DataDescriptor last night!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex 2.0 Tree with Spring Loaded Folders &#171; Flexible Experiments</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-335</link>
		<dc:creator>Flex 2.0 Tree with Spring Loaded Folders &#171; Flexible Experiments</dc:creator>
		<pubDate>Thu, 03 May 2007 19:18:31 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-335</guid>
		<description>[...] : A nasty framework bug was discovered and corrected. Sample and source have been updated. I’ve created a new post describing the bug. Turns out it’s a good one to [...]</description>
		<content:encoded><![CDATA[<p>[...] : A nasty framework bug was discovered and corrected. Sample and source have been updated. I’ve created a new post describing the bug. Turns out it’s a good one to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sinan</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-269</link>
		<dc:creator>Sinan</dc:creator>
		<pubDate>Fri, 20 Apr 2007 02:20:33 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-269</guid>
		<description>I&#039;ve experienced this BUG!
Bug solved : thanks, jason!
Thanks for your article.. :)</description>
		<content:encoded><![CDATA[<p>I&#8217;ve experienced this BUG!<br />
Bug solved : thanks, jason!<br />
Thanks for your article.. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serdar Badem</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-38</link>
		<dc:creator>Serdar Badem</dc:creator>
		<pubDate>Sun, 25 Feb 2007 17:04:53 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-38</guid>
		<description>I think whats going on is if the data loading (appending chilren through HTTPService) takes a little bit longer than the openduration (which is 250ms by default) I get this exception. What I end up doing was to override the expandItem method in my extended tree and actually call the super.expandItem in my result handler method. So in summary, you need to have the children ready before itemOpening.</description>
		<content:encoded><![CDATA[<p>I think whats going on is if the data loading (appending chilren through HTTPService) takes a little bit longer than the openduration (which is 250ms by default) I get this exception. What I end up doing was to override the expandItem method in my extended tree and actually call the super.expandItem in my result handler method. So in summary, you need to have the children ready before itemOpening.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flexibleexperiments</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-37</link>
		<dc:creator>flexibleexperiments</dc:creator>
		<pubDate>Sun, 25 Feb 2007 10:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-37</guid>
		<description>Serdar,

I not sure about your case. Couple suggestions you could  try. 

Sometimes a callLater() in the right spot can do wonders. 

Perhaps test for a bool variable that signified the data loading, if data is loading then try a preventDefault() in the events itemOpen or itemClose combined with a  callLater to give the data time to properly load, the call could perhaps be on the same event i.e.

callLater(yourItemCloseHandler,[event]);

Or perhaps test when you open the folder. If data is not already loaded for that folder then don’t use animation.

expandItem(_lastNodeOver.data,true,false); 

Keeping in mind these suggestions are without knowing any details about your specific implementation.

Jason</description>
		<content:encoded><![CDATA[<p>Serdar,</p>
<p>I not sure about your case. Couple suggestions you could  try. </p>
<p>Sometimes a callLater() in the right spot can do wonders. </p>
<p>Perhaps test for a bool variable that signified the data loading, if data is loading then try a preventDefault() in the events itemOpen or itemClose combined with a  callLater to give the data time to properly load, the call could perhaps be on the same event i.e.</p>
<p>callLater(yourItemCloseHandler,[event]);</p>
<p>Or perhaps test when you open the folder. If data is not already loaded for that folder then don’t use animation.</p>
<p>expandItem(_lastNodeOver.data,true,false); </p>
<p>Keeping in mind these suggestions are without knowing any details about your specific implementation.</p>
<p>Jason</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serdar Badem</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-36</link>
		<dc:creator>Serdar Badem</dc:creator>
		<pubDate>Sun, 25 Feb 2007 03:07:11 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-36</guid>
		<description>It looks like what you are suggesting at least suppresses the error messages however my tree still shows half rendered with some areas not repainted when this exception occurs. In my case I am doing an async data call (HttpService) in onItemOpening event and based on the timing of the call back I am getting this nasty error.</description>
		<content:encoded><![CDATA[<p>It looks like what you are suggesting at least suppresses the error messages however my tree still shows half rendered with some areas not repainted when this exception occurs. In my case I am doing an async data call (HttpService) in onItemOpening event and based on the timing of the call back I am getting this nasty error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flexonrails.net &#187; Blog Archive &#187; We need a package manager like RubyGems for distributing Flex components</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-19</link>
		<dc:creator>flexonrails.net &#187; Blog Archive &#187; We need a package manager like RubyGems for distributing Flex components</dc:creator>
		<pubDate>Mon, 05 Feb 2007 02:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-19</guid>
		<description>[...] example, if I came across a nice component, such as this spring loaded tree, it would be great if all I had to do to add it to my projects is crack open a command line and [...]</description>
		<content:encoded><![CDATA[<p>[...] example, if I came across a nice component, such as this spring loaded tree, it would be great if all I had to do to add it to my projects is crack open a command line and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JabbyPanda</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-18</link>
		<dc:creator>JabbyPanda</dc:creator>
		<pubDate>Sat, 27 Jan 2007 17:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-18</guid>
		<description>No problem Jason, it was a minor nuisance with your component.

BTW, the enginner of Adobe had made a promise at November 2006 at Flexcoders to upgrade access to _dropData property to public :)
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg46023.html

ps..
I am currently fighting with myTree.calculateDropIndex method, if you are interested in my adventures with Flex 2 Tree, I can provide you with the link to my demo app.</description>
		<content:encoded><![CDATA[<p>No problem Jason, it was a minor nuisance with your component.</p>
<p>BTW, the enginner of Adobe had made a promise at November 2006 at Flexcoders to upgrade access to _dropData property to public <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://www.mail-archive.com/flexcoders@yahoogroups.com/msg46023.html" rel="nofollow">http://www.mail-archive.com/flexcoders@yahoogroups.com/msg46023.html</a></p>
<p>ps..<br />
I am currently fighting with myTree.calculateDropIndex method, if you are interested in my adventures with Flex 2 Tree, I can provide you with the link to my demo app.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flexibleexperiments</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-17</link>
		<dc:creator>flexibleexperiments</dc:creator>
		<pubDate>Sat, 27 Jan 2007 14:54:11 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-17</guid>
		<description>JabbyPanda,

Oops. I’d not thought about that at all. Just assumed everyone had/would have upgraded. 

Appreciate the heads up and the nice comment. 

I had actually used that originally for getting at the drop location, and then decide to go back the old way. Even worse it’s not used in the sample at all. You can safely remove that property and it’ll work.

Warning I’ve not tried it on Flex 2.0

My posts will from now on have the Flex 2.0.1 in the title. 

That said I’ll update the code online immediately.

Thanks again.

EDIT: Code updated. I don&#039;t see a real need for yet another update post.
</description>
		<content:encoded><![CDATA[<p>JabbyPanda,</p>
<p>Oops. I’d not thought about that at all. Just assumed everyone had/would have upgraded. </p>
<p>Appreciate the heads up and the nice comment. </p>
<p>I had actually used that originally for getting at the drop location, and then decide to go back the old way. Even worse it’s not used in the sample at all. You can safely remove that property and it’ll work.</p>
<p>Warning I’ve not tried it on Flex 2.0</p>
<p>My posts will from now on have the Flex 2.0.1 in the title. </p>
<p>That said I’ll update the code online immediately.</p>
<p>Thanks again.</p>
<p>EDIT: Code updated. I don&#8217;t see a real need for yet another update post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JabbyPanda</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-16</link>
		<dc:creator>JabbyPanda</dc:creator>
		<pubDate>Sat, 27 Jan 2007 12:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-16</guid>
		<description>Dear Jason,

I want to clarify for the rest of the folks that this Spring Loaded Folders Tree component works correctly only with *Flex 2.0.1 SDK*, just released by Adobe at January 2007. 
http://www.adobe.com/support/flex/downloads_updaters.html

If you are still using Flex 2.0 SDK, you will receive the following error in Flex Builder why compiling Spring Loaded Folders Tree: 
---------
1178: Attempted access of inaccessible property _dropData through a reference with static type mx.controls:Tree.	AudiooFileBrowser/src/com	SpringLoadedTree.as	
---------

In Flex 2 SDK the Tree.as the property _dropData was declared as private. 

ps 
Jason, it is nice to see this new great effort from you targeting at the new useful developments at Flash sphere.  I remember your efforts to build RTE in Flex 1.5, it was also a good try :)</description>
		<content:encoded><![CDATA[<p>Dear Jason,</p>
<p>I want to clarify for the rest of the folks that this Spring Loaded Folders Tree component works correctly only with *Flex 2.0.1 SDK*, just released by Adobe at January 2007.<br />
<a href="http://www.adobe.com/support/flex/downloads_updaters.html" rel="nofollow">http://www.adobe.com/support/flex/downloads_updaters.html</a></p>
<p>If you are still using Flex 2.0 SDK, you will receive the following error in Flex Builder why compiling Spring Loaded Folders Tree:<br />
&#8212;&#8212;&#8212;<br />
1178: Attempted access of inaccessible property _dropData through a reference with static type mx.controls:Tree.	AudiooFileBrowser/src/com	SpringLoadedTree.as<br />
&#8212;&#8212;&#8212;</p>
<p>In Flex 2 SDK the Tree.as the property _dropData was declared as private. </p>
<p>ps<br />
Jason, it is nice to see this new great effort from you targeting at the new useful developments at Flash sphere.  I remember your efforts to build RTE in Flex 1.5, it was also a good try <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex 2.0 Tree with Spring Loaded Folders &#171; 만영&#8217;s 블로그</title>
		<link>http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-15</link>
		<dc:creator>Flex 2.0 Tree with Spring Loaded Folders &#171; 만영&#8217;s 블로그</dc:creator>
		<pubDate>Fri, 26 Jan 2007 01:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/#comment-15</guid>
		<description>[...] 원문:http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/ [...]</description>
		<content:encoded><![CDATA[<p>[...] 원문:http://flexibleexperiments.wordpress.com/2007/01/25/flex-20-tree-with-spring-loaded-folders-update/ [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
