PDA

View Full Version : [AS2] Remove leaf in tree component..?


Jakobben
12-10-2008, 01:05 PM
Hi,

I have created an XML file, with a tree structure, and added the tree to my flash file. The tree works perfectly, but I would like to be able to remove and add leafs to some of the branches (folders). I have this:

Templates (folder)
Summer
Winter
Spring
Fall

When I use removeTreeNodeAt(index) I can only remove the entire folder "Templates", not the individual leafs (nodes?). Is there some way around this? :confused:

I have the same problem when adding. I can add a folder, but when I try to add a file in that folder, it stays in the same level as the folder - not inside it...

I do not which to save the changes to the XML file - if it can be avoided.

Thank you very much!!

/Jakobben