1 Reply Latest reply on Dec 14, 2010 11:21 AM by Flex harUI

    why the tree show different while i use XML and XMLList as the data provider


      Code is as follows:


      <?xml version="1.0" encoding="utf-8"?>

      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:services="services.*" layout="vertical">

      <services:CommonSvc id="ws" NameSpace="ws.wsSysDict" creationComplete="ws.getXmlList()"/>

      <mx:Tree width="100%" height="100%" labelField="@Name" dataProvider="{ws.xml}" fontSize="18" showRoot="false"/>



      Shown below:


      as you see above,the font show Incomplete, if i change the dataprovider as  follows:

      <mx:Tree width="100%" height="100%" labelField="@Name" dataProvider="{ws.xml.obj}" fontSize="18" showRoot="false" />


      it  show complete when i use xmllist as the tree's dataprovider


      why it show like that while i use the xml as the tree's dataprovider,hope anybody's helping