CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Adobe Flex (http://www.codingforums.com/forumdisplay.php?f=63)
-   -   flex xml in tree (http://www.codingforums.com/showthread.php?t=201433)

arunsoorya 08-03-2010 08:36 AM

flex xml in tree
 
The following xml values is getting from php file
Code:

<result>
      <list>
          <node>air</node>
          <node>flex</node>
          <node>android</node>
      </list>
    </result>

i am calling this xml using httpservice

Code:

  <mx:HTTPService
                        id="project"
                url="http://localhost/eshpm/AIR/newproject.php"
                method="POST" result="onResult_projectname(event)" resultFormat="e4x">
                          <mx:request xmlns="">
                                  <name>yes</name>
                          </mx:request>
    </mx:HTTPService>

The result is obtained using the function


Code:

private function onResult_projectname(evt:ResultEvent):void
    {
           
                  xmldata = new XML(evt.result);
            xmlList_user = new XMLListCollection(xmldata.list);                         
           
            tree.dataProvider = xmlList_user.children();                   
    }

The problem is that i am able to display the values in Tree.......but it is repeating

ie, "air" is comming in tree twice....

plz help.............thanks


All times are GMT +1. The time now is 11:09 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.