Displaying RosterUser in Tree


I’'m writing a IM using wildfire server, flash & xiff.

Please help in displaying the Roster Items in a Tree.

I tried this with the following code:

roster = new Roster(connection);

myTree.dataprovider = roster;

but this is not displaying users in myTree ( Tree instance name.).

i tried with grid it’'s working, but not with tree.

So please help in displaying users in tree format.

Hi All,

I have got the user list in tree by writting the following code:


myTree.dataProvider = xmppRoster;

But again i’'m facing a problem!.

I want to display only names in tree but the dataProvider is displaying all the

attributes of Roster Item in it.

How to get only display name on tree???