1 Reply Latest reply on Aug 10, 2010 3:51 AM by rootsounds

    After I send XML the tree is left

    Hannes1234

      Hello,

       

      I have a tree in my Flex- Application:

       

      <mx:Tree id="myTree" dataProvider="{myXMLTree}" width="250" height="100%"
                       labelField="@name" showRoot="true" change="onChange(event)"
                       folderClosedIcon="{assetTreeOpened}"
                       folderOpenIcon="{assetTreeOpened}"
                       defaultLeafIcon="{assetTreeLeaf}"
                       iconFunction="treeIcon"
                       selectionColor="#9a9a9a"
                       rollOverColor="#eeeeee"
                       rollOverEffect=""
                       />

       

      and after I send the data of this tree to the server,

       

      private function sentXMLFile():void {
                      httpXmlDataService.method = "POST";
                      httpXmlDataService.contentType = "text/xml";
                      httpXmlDataService.send(myXMLTree);
                      }

       

      the data must be reloaded or if the server doesn't send back the data for the tree then the tree disappears.

      Does anyone a solution concerning this problem,

      I will send the data of the tree but the tree should stay as it is.

      Thanks!!

      Hannes