1 Reply Latest reply on Feb 29, 2008 4:38 PM by ntsiii

    iterate a tree

    kilyas2007 Level 1
      In Flex how can you iterate over mx.Controls.Tree item. e.g you have a Tree named myTree in your xml. Now you can access the first element in the tree using the following:-

      myTree.firstVisibleItem

      But how to access the rest?
        • 1. Re: iterate a tree
          ntsiii Level 3
          You do not iterate over mx:Tree.

          You iterate, recursively, over the tree's *dataProvider*.

          The precise syntax depends on the dataProvider you are using.

          What is your dataProvider? What are you trying to do? Recursive iteration is often not necessary. There are other solutions.

          Tracy