This content has been marked as final. Show 3 replies
Ok, you have two possible problem points here, the data retrieval, and the tree display, so you need to do one at a time.
First, hard code a little of the xml that you are expecting from the HTTPService. See the example in the flex Explorer:
then go to Visual Components, General controls, Tree. copy the code and get it to work on you machine.
Then change the hardcoded xml in the example to be the same as the xml you are getting from the HTTPService.
When all that is working, post back ans we will work on the HTTPService call and the dataProvider reference.
Thanks Tracy ... I was able to get it to work bsed on some some of the examples you pointed me to. Turns out I didn't need to use the HTTPService component, but was able to do it as follows:
<mx:XML id="treeModel" source=" http://myserver/xmlservlet"/>
<mx:Tree id="xmlTree" height="200" width="200"
Sure. Be aware that that syntax is a compile time load of the xml.
If you want to load it at runtime (initial load performance?) or change it at run time, you will need HTTPService.