1 Reply Latest reply on Aug 6, 2008 4:53 PM by whertzing

    How to tell if ObjectProxy contains ArrayCollection or single object?

    whertzing
      When I get data back from a web service, the list contains an ArrayCollection. Within each ArrayCollection, the item may be either a single object, or an ArrayCollection of theser objects. It appears FLEX supplies what it thinks is the correct type of ObjectProxy object based on the number of children under the parent node.

      If the ObjectProxy refers to an ArrayCollection, I want to iterate over it, but if it refres to a single object, I want to pull off some of it's properties.

      How can I tell at run time if an ObjectProxy refers to an ArrayCollection, or a single object? Thanks very much in advance!