This will only work for XMLCollection. What about ArrayCollections?

-Shailesh

--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Isn't it just selectedItem.parent()?
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of dffmyco
> Sent: Monday, September 24, 2007 7:16 AM
> To: [email protected]
> 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