6 Replies Latest reply on Jun 19, 2009 11:56 PM by leybniz

    fuse multiple ArrayCollections

    cdub

      I'm creating an app that gets it's data from multiple sources, so I have multiple ArrayCollections (with identical format). I need to aggregate them into a single list. Something like:

       

      private var person1:ArrayCollection;

      private var person2:ArrayCollection;

       

      person1 = event.result.members.person;

      person2 = event.result.members.person;

       

      I want to do something like this:

       

      private var thePeople:ArrayCollection;

      thePeople = person1 + person2

       

      dataProvider="{thePeople}";

       

      How is this done?