View Full Version : Store duplicate Array values to another Array

09-15-2010, 08:57 AM
Hi flex coders,

As the title says it all, how will I do this in flex? Like for example I have the values 1,1,1,2,2,3. All the duplicated entries need not to be remove but will just be stored in another collection.

Need some light. Please help!

Best Regards,

09-15-2010, 03:16 PM
var a : ArrayCollection = new ArrayCollection(array);
var b : ArrayCollection = new ArrayCollection(a.source);


Use mx.utls.ObjectUtil.Copy

var arrayCollection1 : ArrayCollection = ObjectUtil.copy(arrayCollection2);