I haven't messed with ByteArrays. Are you saying to create a bytearray for each object in the array and use it as a key in the dict?
----- Original Message ----- From: Oleg Sivokon To: [email protected] Sent: Thursday, July 01, 2010 9:50 AM Subject: Re: [flexcoders] How to remove duplicate objects from an array of objects If those are simple dynamic objects you can write them to ByteArray and compare them, it will be faster than using ObjectUtils. Everything in AS, except for numeric types (but not Date), strings and booleans are references, Array.indexOf() uses strict equality (compares references), so even if there will be 1 and "1" indexOf will not treat them as same. But, most of the time this is what you want :) There's also Array.filter method, but it's slower then a simple loop. But may look somewhat prettier :)

