I recently finished a project for a friend who needed a recursive tree component built in Flash. Instead of reinventing the wheel, I decided to extend the Macromedia V2 Tree component. I’m working on delivering the file as a compiled clip and if you’re interested in a copy then please post a comment here or send an email to dennisbaldwin at gmail dot com. You can see an example of the component here:
This example is fed from a tree.xml file that has label and id attributes for each node. Whenever a selection is made the value is stored in an id array which can then be passed to your backend application for processing.
Another interesting feature is that it has the ability to handle duplicate id’s within the tree. For example, if you drill down to Customers > Mail > Inbox and select it you’ll notice that the Mail node (the 2nd one) gets selected as well. That’s because the id’s are duplicates.
Right now there is only support for a single icon type but I have plans to extend this to support many different types. If you have any suggestions that you’d like to see implemented then please feel free to comment or shoot me an email.