0 Replies Latest reply on Apr 17, 2007 2:28 PM by ddecort

    Tree Icons

    ddecort
      Could someone please provide an example of how to set unique icons for each and every node of a Tree? (Each node in the tree has a different icon, regardless of whether it's a leaf node or folder node).
      There's great examples using setItemIcon, but I can't for the life of me find a sample of how to change the icon for each subfolder individually.


      private function setIcons():void {
      engagementsTree.setItemIcon(engagementsTree.dataProvider.getItemAt(0),
      engagements_16, engagements_16);
      }

      I've tried:

      engagementsTree.setItemIcon(engagementsTree.dataProvider.getItemAt(0).ch
      ildNodes[1]

      but no matter what method I try I can't target a child of the root so set it's icon uniquely.