saludos . .

Hola developers´s Flex, soy nuevo en el foro y me presento me llamo Alex.

Disculpen alguien me puede ayudar a pasar los resultados de un datatable (WebServices .net) a un Tree de Flex.

aki les pongo algo me mi codigo de lo que tengo:

*****************************************************************************************************************************

Código :

           [Bindable]
      private var table:ArrayCollection;
      [Bindable]
      private var xmlData:XMLList;          
      private function fillTreeView(event:ResultEvent):void   
      {         
         xmlData=event.result[0].NewDataSet.Table.diffgr as XMLList;
                        //AQUI ES DONDE DEBO PONER EL RESEULTADO DEL RESULT EVENTE QUE ESTA EN FORMATO E4X A MI TREE, PERO LA VERDAD NO TENGO LA IDEA DE COMO HACERLO  :oops:
                }


               <mx:WebService id="TreeView"
      wsdl="http://localhost/datagridflex3/Service.asmx?WSDL"
      showBusyCursor="true" >   
         <mx:operation name="DataGrid" 
            result="fillTreeView(event)"
            resultFormat="e4x"/>   
      </mx:WebService>
      
      <mx:Panel x="10" y="270" width="377" height="229" layout="absolute" title="Tree View">
         <mx:Tree id="trView"            
            x="10" y="10" width="337" height="169"
            dataProvider="{xmlData}"
            initialize="TreeView.DataGrid()"
            dataTipField="@id"/>
      </mx:Panel>

*****************************************************************************************************************************

Espero y aqui me puedan ayudar, gracias y nos estamos viendo . .