<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.3" -->
<rss version="2.0">
	<channel>
		<title>Tree Menu with ActionScript (AS3)</title>
		<description>Comments for Tree Menu with ActionScript (AS3) at http://www.actionscript-flash-guru.com , comment 1 to 11 out of 11 comments</description>
		<link>http://www.actionscript-flash-guru.com</link>
		<lastBuildDate>Sat, 04 Sep 2010 22:29:01 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.3</generator>
		<item>
			<title>developer</title>
			<link>http://www.actionscript-flash-guru.com/blog/19-tree-menu-with-actionscript-as3#comment-48</link>
			<description>Hi I love your work here !!!
However the loading technique below no longer appears to work on the modified classes:

mytree.dataProvider = new TreeDataProvider(myxml);

Have I missed something ?
The example seems to work ok for the astra example - Mark P</description>
			<pubDate>Wed, 10 Mar 2010 16:40:29 +0100</pubDate>
		</item>
		<item>
			<title>The Init Function in TreeCustom</title>
			<link>http://www.actionscript-flash-guru.com/blog/19-tree-menu-with-actionscript-as3#comment-44</link>
			<description>This code adds two nodes at the bottom of the tree as a spacer to make sure you can always scroll to the bottom of the list. I added the two nodes because sometimes the component cuts off the last node when you are scrolled all the way down to the bottom. - Nicholas</description>
			<pubDate>Mon, 01 Mar 2010 11:53:38 +0100</pubDate>
		</item>
		<item>
			<title>What is this init function?</title>
			<link>http://www.actionscript-flash-guru.com/blog/19-tree-menu-with-actionscript-as3#comment-43</link>
			<description>Hi Nicholas!
I'm working in my TreeCheckBox customization.
But there are things in your code that I can't understand, maybe you can help me with this function:

public function init():void{
          var parentDp:TreeDataProvider = this.dataProvider as TreeDataProvider;
          var rn:RootNode;
                    rn = parentDp.rootNode as RootNode;
                    _placeHolderNode1 = new LeafNode(parentDp);
          _placeHolderNode1.label = &quot;-&quot;;
          _placeHolderNode1.data = {type:&quot;Empty&quot;};
          rn.addChildNodeAt(_placeHolderNode1, rn.children.length);
                    _placeHolderNode = new LeafNode(parentDp);
          _placeHolderNode.label = &quot;&quot;;
          _placeHolderNode.data = {type:&quot;Empty&quot;};
          rn.addChildNodeAt(_placeHolderNode,rn.children.length);
         }

it's inside &quot;TreeCustom.as&quot; - Enrique</description>
			<pubDate>Mon, 01 Mar 2010 11:50:59 +0100</pubDate>
		</item>
		<item>
			<title>Grey out the clicked nodes</title>
			<link>http://www.actionscript-flash-guru.com/blog/19-tree-menu-with-actionscript-as3#comment-40</link>
			<description>To ss777, you can store each nodes state by adding custom data to the nodes that have changed. You can see examples of _data.data.type in TreeCellRendererCustom.as under funcitons like drawLayout. _data.data is the object to which you can attach custom data or just change the node type by manipulating _data.data.type. Since data is an Object you can pass a reference out with an event from handleClickEvent in TreeCellRendererCustom.as which is triggered when a node is clicked. 

Hope this helps - Nicholas</description>
			<pubDate>Sat, 27 Feb 2010 18:17:24 +0100</pubDate>
		</item>
		<item>
			<title>to answer a few questions</title>
			<link>http://www.actionscript-flash-guru.com/blog/19-tree-menu-with-actionscript-as3#comment-39</link>
			<description>[b]To answer the question about adding a check box to each node.[/b]

You will need to look at handleClickEvent in TreeCellRenderCustom.as that I have provided. There is an example in there of how the click events are registered on the tree node. You will have to change and record the state of the check box in this function. As for adding the check box to each node you can check out my example of how to add an element to each node. This can be demonstrated by checking out all the places textFieldRight appears which was a text field I added to the right of each node as one of my own customizations. 

[b]To answer the question about what the done is. [/b]

I customized the TreeCustom.as to have the functions group() and groupEnd() any nodes added between these two function calls get put one level lower and when the tree returns to a previous level it finishes out the node with the word done. This is my customization and you can remove it from groupEnd() in TreeCustom.as and/or you can find it in the component's graphic assets in the FLA Library and remove the fram with done on it in the cell linked graphic. 

[b]To answer the question about what the grey icon is about [/b]

This is an example of a custom alternate icon for special nodes. You can see an example of this code in _iconFunctionCustom on TreeCuystom.as You will see the node has a type of &quot;ThisIsASymbolInTheLibrary&quot; which then returns the name of the symbol that is in the library which is the grey icon and it places it in the Tree node.

Thank you for your questions, its good to see people read my blog. - Nicholas</description>
			<pubDate>Sat, 27 Feb 2010 18:06:16 +0100</pubDate>
		</item>
		<item>
			<title>Checkbox Node</title>
			<link>http://www.actionscript-flash-guru.com/blog/19-tree-menu-with-actionscript-as3#comment-37</link>
			<description>Hi Nicholas!
You have done a great work! Thanks!
I'm trying to add a checkbox to each node of the tree, something like these components:
http://www.sephiroth.it/file_detail.php?pageNum_comments=30&amp;id=151
http://www.darronschall.com/weblog/2006/09/a-flex-2-checked-tree-control-component.cfm
But they are written in Flex and I need to use the Tree inside Flash :(
Can you help me to add a checkbox to Astra Tree?
Thanks! - Enrique</description>
			<pubDate>Thu, 25 Feb 2010 02:15:12 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.actionscript-flash-guru.com/blog/19-tree-menu-with-actionscript-as3#comment-33</link>
			<description>thanks Nicholas for sharing this Example of How to Customize a Tree Component.is there any solution for die component. - cisco exam questions</description>
			<pubDate>Wed, 17 Feb 2010 15:54:10 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.actionscript-flash-guru.com/blog/19-tree-menu-with-actionscript-as3#comment-31</link>
			<description>Hi, thanks for the info. Do you know if it's possible to 'grey' out nodes/sections if they are 'off limits'?

For example, I have a flash course with slides. The slides are accessible from the tree menu and all are visible in it. If the user has not yet completed a slide, then the relevant node/slide is not clickable from the tree menu and returns a text warning. Is it possible to 'grey' out the unavailable nodes/slides?

Many thanks
S - ss777</description>
			<pubDate>Mon, 01 Feb 2010 22:26:44 +0100</pubDate>
		</item>
		<item>
			<title>works good! couple questions</title>
			<link>http://www.actionscript-flash-guru.com/blog/19-tree-menu-with-actionscript-as3#comment-26</link>
			<description>couple questions: any idea where the word &quot;done&quot; is coming from?

also I noticed that the first icon is dark gray, but the other icons look correct ( /- on the button).

thanks for the write up! - bhjodokast11111</description>
			<pubDate>Thu, 14 Jan 2010 04:48:11 +0100</pubDate>
		</item>
		<item>
			<title>More Information Please</title>
			<link>http://www.actionscript-flash-guru.com/blog/19-tree-menu-with-actionscript-as3#comment-15</link>
			<description>You will have to give me more specifics for me to help you to get it working on your system. I downloaded the files an retested it and it compiles fine for me as long as I have the class paths set correctly. You have to have your class paths set to the following:
1.) the location of the custom classes I provided in the .zip file
Example:
C : /Documents and Settings/Nick/Desktop/customTreeclasses
2.) the location of the Astra library
Example:
C : /Documents and Settings/Nick/Desktop/astra/Source

To customize text size, text color and text font you can find everything you need in the file TreeCellRendererCustom.as

Check out the function drawTextFormat and play around with the code in there. - Nicholas</description>
			<pubDate>Tue, 05 Jan 2010 12:27:51 +0100</pubDate>
		</item>
		<item>
			<title>Re:</title>
			<link>http://www.actionscript-flash-guru.com/blog/19-tree-menu-with-actionscript-as3#comment-4</link>
			<description>Hai thanks for your inf bout its not working in my system... and also i want to know how to edit text size and text color and text font.... can u help me? - jagadheeswaran</description>
			<pubDate>Wed, 09 Dec 2009 19:09:10 +0100</pubDate>
		</item>
	</channel>
</rss>
