You're probably better off representing this data in XML, and then simply have each item have a category attribute or something, then just use the @category=="A" like e4x syntax to get what you want.
Otherwise you need to parse the array and use logic to extract the two AC.
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
thanks for your answer. The thing is that the data is represented that way and I guess I can't do much to change it.
Can you expand on parsing the array and using the logic? I just need an example to know how it's done.
Since all parentLayerId are -1 I think I could create an array with all those layers. Then loop all values in subLayerIds of that array, and look for all the ids that correspond to that values.
Is there any easy way to do this? I still don't get it.