two or more separate instances with the same property values. I did get it to work using ObjectUtils.toString as the key for the dict object but i'm still not sure this is the best way...
----- Original Message ----- From: Alex Harui To: [email protected] Sent: Thursday, July 01, 2010 12:30 AM Subject: Re: [flexcoders] How to remove duplicate objects from an array of objects Are you trying to find the duplicate references to the same object or two separate instances with the same property values? You may not get what you want with toString() and is not needed if checking for duplicate references. On 6/30/10 2:19 PM, "Warren" <[email protected]> wrote: I have an array of simple objects from which I need to remove the duplicates. I'm thinking about creating a dictionary using as a key the toString value of each object. I'll feed the dictionary by looping through the array, then loop over the dictionary and push the items into a new array. I'm looking for a sanity check. Is this a decent idea? Has anyone done it already and maybe more efficiently? Thanks! Warren -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui

