labelFunction. Something like:
private function lfTree(oItem:Object):String {
var xmlItem:XML = XML(oItem);
var sText:String = xmlItem.text();
if (sText.lenght == 0) {
sText = xmlItem.name(); //or localName()
}
return sText;
Tracy
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Yasir Mahmood
Sent: Saturday, April 12, 2008 6:05 AM
To: [email protected]
Subject: [flexcoders] how we can show the data in a flex tree
Hi
I need to display this type of data in treecontrol.
I just want that tree should display
Southwest,Arizona,40000 as children of Table and
Southwest as Children of subTable.
<Main>
<Table>
<Region>Southwest</Region>
<Territory>Arizona</Territory>
<Estimate>40000</Estimate>
</Table>
<subTable>
<subRegion>Southwest</subRegion>
</subTable>
</Main>
Please help to solve the problem.
Regards
YM
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com