is there a sample somewhere? can i start from and empty XML? can i add elements and child elements simply putting a parent id ? thanks
--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > I would loop over the array and build XML. The Tree likes XML. > > > > Either use the e4x methods to build the XML, or just build a string and > parse it into XML using varxml:XML = XML(strXML); > > > > Tracy > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of mapper2255 > Sent: Wednesday, April 04, 2007 9:18 AM > To: [email protected] > Subject: [flexcoders] Re: Tree and Array > > > > > Here are a couple links: > > http://www.adobe.com/devnet/flex/quickstart/working_with_tree/ > <http://www.adobe.com/devnet/flex/quickstart/working_with_tree/> > > http://www.flex2components.com/f2cblog/2006/10/16/flex-2-tree- > <http://www.flex2components.com/f2cblog/2006/10/16/flex-2-tree-> > walking-the-tree-method/ > > I know it was for the Cairgorm Store but I did a keyword on these > archives of: "events tree cairgorm" and got 52 results a lot with > the tree component. > > Hope it helps some. > > --- In [email protected] <mailto:flexcoders% 40yahoogroups.com> > , "Sal" <nhp_ny@> wrote: > > > > how? can't find a sample... can't find docs on it... does that > mean > > i'll need to build a tree structure inside an array and then pass > it > > to the data provider? if so... are there docs or samples on this? > how > > to add an array child of an array element? > > > > Thanks > > > > > > --- In [email protected] > <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <aharui@> wrote: > > > > > > You have to build up the dataprovider and pass it into the > tree. > > If you > > > change the dataprovider later, the tree will notice in most > cases. > > > > > > ________________________________ > > > > > > From: [email protected] > <mailto:flexcoders%40yahoogroups.com> > > [mailto:[email protected] > <mailto:flexcoders%40yahoogroups.com> ] On > > > Behalf Of Sal > > > Sent: Tuesday, April 03, 2007 5:38 PM > > > To: [email protected] <mailto:flexcoders% 40yahoogroups.com> > > > > Subject: [flexcoders] Tree and Array > > > > > > > > > > > > hi, > > > i have an array of records received from an amfphp call and i > need > > > to fill a tree control with that data. > > > > > > the array has this format: > > > > > > aArr[0].id > > > aArr[0].description > > > aArr[0].parent > > > aArr[0].order > > > > > > aArr[1].id > > > aArr[1].description > > > aArr[1].parent > > > aArr[1].order > > > > > > ... and so on > > > > > > i didn't find any method of the control that adds node or that > sets > > > node parent. > > > > > > Any ideas? > > > > > > Thanks. > > > > > >

