I have an HTTPService which provides a data I want to show in a tree.
I have worked out the example of having an XMLList into a tree.
The source JSP is generting the following data:
<?xml version="1.0" encoding="utf-8"?>
<node label="Mail Box">
<node label="Inbox">
<node label="Marketing"/>
<node label="Product Management"/>
<node label="Personal"/>
</node>
<node label="Outbox">
<node label="Professional"/>
<node label="Personal"/>
</node>
<node label="Spam"/>
<node label="Sent"/>
</node>
The code for defining HTTPService is
<mx:HTTPService id="srv2" url="receipientList.jsp">
</mx:HTTPService>
The code for tree is
<mx:Tree id="dateSelectionTree"
x="200" y="300" labelField="@label"
showRoot="false" dataProvider="{srv2.lastResult}" width="100%" height="100%" />
The result however prints out [object Object] in the tree.
What am I doing wrong?
Thanks for your time
Fahad