Personally, I am using a third variant: Target.source = newSource.toArray();
It has the advantage or not breaking any existing collection listeners, and will generate only one RESET event. Maurice -----Message d'origine----- De : mark goldin [mailto:[email protected]] Envoyé : lundi 4 novembre 2013 12:46 À : users Objet : Copying ArrayCollections Is the following code functionally identical: target.removeAll(); for each (var item:* in source) { target.addItem(item); } and this: target = new ArrayCollection(source.toArray()); Thanks
