2 Replies Latest reply on Sep 28, 2010 9:37 AM by majester8425

    How do I traverse a tree component ?

    majester8425 Level 1

      How do I traverse a tree component ?

       

      I tried the following but it only returns 1 row. The dataprovider is XML.

       

      var datalength:Number = mytree.dataProvider.length;

                             

      Alert.show(String(datalength));

                                                     

      for ( var i:Number = 0; i < datalength; i++)

      {

            Alert.show(mytree.dataProvider.getItemAt(i).@label); 

                 

      }