nope -- problem is that indexOf, contains, etc is not matching the object 
itself.  seems to be matching references which means that everything is "unique"


  ----- Original Message ----- 
  From: Oleg Sivokon 
  To: [email protected] 
  Sent: Thursday, July 01, 2010 2:53 AM
  Subject: Re: [flexcoders] How to remove duplicate objects from an array of 
objects


    

  var i:int = myArray.length;
  var obj:Object;
  while (i--)
  {
      obj = myArray[i];

      if (myArray.indexOf(obj) !== myArray.lastIndexOf(obj))
          myArray.splice(i, 1);
  }
  Anything like this?

  

Reply via email to