1 Reply Latest reply on Dec 19, 2008 4:12 PM by Newsgroup_User

    Tree and XML Question

    WestSide Level 1
      Hi,

      I have this XML that is returned from a ColdFusion CFC. So in Flex I have this code:

      var treeXML:XML = new XML(event.result);

      I am then assigning this to the dataProvider of my tree. This works fine, but how can I get at each top level node in the tree? I want to basically loop over the top level categories of the tree?

      Thanks,

      -Westside
        • 1. Re: Tree and XML Question
          Level 7

          "WestSide" <webforumsuser@macromedia.com> wrote in message
          news:gigrbp$9dc$1@forums.macromedia.com...
          > Hi,
          >
          > I have this XML that is returned from a ColdFusion CFC. So in Flex I have
          > this code:
          >
          > var treeXML:XML = new XML(event.result);
          >
          > I am then assigning this to the dataProvider of my tree. This works fine,
          > but
          > how can I get at each top level node in the tree? I want to basically
          > loop
          > over the top level categories of the tree?

          treeXML.children()
          http://dispatchevent.org/roger/as3-e4x-rundown/