PDA

View Full Version : xml 'icons' when using Tree Component


thumbslinger
07-29-2006, 12:49 AM
Is there any voodoo to remove the icons that appear when pulling in an xml file via the xml component and displaying it in a Tree component?

I'm trying to read in a simple list from an xml file but don't want the different associated icons that appear when using nodes.

mxyntl
10-14-2006, 05:11 AM
I'm not using XML, but this might work for you. I'm loading data from an array, hence the use of the for loop.

Note: the spaces before f_name[i] are needed to keep the text from overwriting the triangular pointer that opens the node

for (var i:Number = 0; i < 10; i++) {
mytree.addTreeNodeAt(i," " + f_name[i] + " " + l_name[i]);
mytree.setIcon(mytree.getTreeNodeAt(i), "");
}