4 Replies Latest reply on Oct 2, 2009 10:00 AM by Flex harUI

    Tree control and XML dataprovider

    twitskull

      Hi,

       

      I am trying to get this xml ( http://mitjafelicijan.net/test.xml ) working with my tree control in my Flex app and cannot figure it out how exactly to do this.

       

      my Flex code is this

       

      <mx:Tree left="0" top="0" bottom="0" showRoot="true" id="trvTreeview" right="0"></mx:Tree>

       

      and my AS code is this

       

      var tmp:XML = XML(event.target.data);
      trvTreeview.dataProvider = tmp.node;

       

      I get such output

       

      http://mitjafelicijan.net/tree.png