If you can, you should structure your data to have back pointers to the
parents

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Shailesh Mangal
Sent: Monday, September 24, 2007 10:12 PM
To: [email protected]
Subject: [flexcoders] Re: Find parent of selected item in tree



This will only work for XMLCollection. What about ArrayCollections?

-Shailesh

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Isn't it just selectedItem.parent()?
> 
> 
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of dffmyco
> Sent: Monday, September 24, 2007 7:16 AM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Find parent of selected item in tree
> 
> 
> 
> I just can not seem to figure out how to get the
> parent of a selected item ([EMAIL PROTECTED]).
> In this case I need to know the genus name when a species is 
> selected. Note that a species name is not unique to a genus name, 
> Uromyces ingae and Puccinia ingae 
> 
> public var nameData:XML = <allData>
> <genus name="Uromyces">
> <species name="ingae"/>
> <species name="elegans"/>
> <species name="dolicholi"/>
> </genus>
> <genus name="Ravenelia">
> <species name="irregularis" />
> </genus>
> <genus name="Puccinia">
> <species name="ingae"/>
> <species name="manoelae"/>
> <species name="longirostris"/>
> </genus>
> 
> </allData>
> 
> Thanks, Dave
>



 

Reply via email to