The @ is for attributes in xml data attributes, but your using objects.
-Tom2
I've been trying to get my head around the treeview control, see where
it's useful for a project, work out what some of the limitations are.
as you can guess, Flex (and AS) is new to me....
I'm stuck on something I just don't get: when using an array of items
to populate a tree:
it seems that the field "label" is used as the label of the treeview.
In the tree I've tried labelField="@shortName" but still can't get
"shortName" to display as the label (eventually, label will NOT be a
valid field from the back end)
any idea how?
thanx
public var contacts1:Object = {label: "top", children: [
{label: "Acme", shortName:"AAAA", status: true, phone:
"243-333-5555", children: [
{label: "Sales", shortName:"BBBB", status: true,
phone: "561-256-5555"},
{label: "Support", shortName:"CCCC", status:
false, phone: "871-256-5555"}
]},
{label: "Ace", shortName:"DDDD", status: true, phone:
"444-333-5555", children: [
{label: "Sales", shortName:"EEEE", status: true,
phone: "232-898-5555"},
{label: "Support", shortName:"FFFF", status:
false, phone: "977-296-5555"},
]},
{label: "Platinum", shortName:"GGGG", status: false,
phone: "521-256-5555"}
]};
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- [flexcoders] treeview and Barry Beattie
- Re: [flexcoders] treeview and Tom Ortega
- RE: [flexcoders] treeview and Tracy Spratt
Reply via email to

