0 Replies Latest reply on May 1, 2007 3:31 PM by Josh Johnson

    Getting a Tree from a Selected Item

    Josh Johnson
      I have an iconFunction on a tree called "myIconFunction", where that function looks something like this:

      private function myIconFunction(item:Object):void {
      theTree.setItemIcon(item, closedIcon, openIcon)
      }

      The problem is that I'm hardcoding the id of the tree into the function, and I'd like to make it generic, so that the id of the tree is derived from the 'item' object. If found the getParentItem function, but that seems to only work on the data within the tree, and the parent of the top-node items is null. Any ideas?