...

View Full Version : Store duplicate Array values to another Array



pasensyoso_mani
09-15-2010, 09: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,

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

or

Use mx.utls.ObjectUtil.Copy

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum