我有一个数组,我们可以称它为_persons。 我正在使用Value Objects填充此数组,我们称该对象PersonVOas3检查数组中具有相同属性的2个对象
每个PersonVO都有一个名称和一个score属性。
我所试图做的是搜索阵列&
//PSEUDO CODE
1 Find any VO's with same name (there should only be at most 2)
2 Do a comparison of the score propertys
3 Keep ONLY the VO with the higher score, and delete remove the other from the _persons array.
我在用代码实现的麻烦。任何AS3向导能够提供帮助?