This example will show you how to change the opened/closed folder icon, the leaf icon, the icon of a specific node, and the default triangles that open and close nodes. Because we need to set the default values before the data is loaded, we cannot change the icons of an already loaded cftee, unless we change each of the nodes one by one.
Category / Flash Remoting
As part of these series "How to populate a cf[…] with Remoting", I wanted to show how to bring data into a cftree. This is the easiest way, but it has some limitations: your xml data has to have a label attribute and the tree is first closed when it loads. If you want to get around those, you will have to do more work with the data returned from the server (I may do it if I have time :)).
As a follow up of my last post, I made an example on how to populate a cfgrid with Flash Remoting.
The basic difference is that now the ColdFusion component returns a query instead of a string. The important part in the ActionScript code is how we set the data to the datagrid. To show the effect, I create a cfgrid and populate it with an empty query, so that when I call the component, I can see the data loaded.