To answer your specific question about adding nodes... Since you have an XML dataProvider, the selectedNode property will return an XML object. You can then use the appendChild() method to add child nodes. eg:
var node: XML = XML(tree.selectedNode);
node.appendChild(<node label="newchild">);
On 2/5/06, Brendan Meutzner <[EMAIL PROTECTED]
> wrote:
Hi,
Can someone provide me with an example of addTreeNode for Flex 2? I
have a XML structure that is loaded into my Tree as the dataProvider.
I would like to be able to click on a node within the tree, and then
add a sub node into that selected node. When I get the selectedNode
from the tree, and attempt call addTreeNode on it, I get an error
"Call attempted on an object that is not a function"...
Unfortunately, not much documentation on these methods yet, so any
help offered would be very much appreciated.
Brendan
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

