ฉันมีอาร์เรย์ ลองเรียกมันว่า _persons ฉันกำลังเติมอาร์เรย์นี้ด้วย Value Objects ให้เรียกวัตถุนี้ว่า PersonVO
PersonVO แต่ละคนมีชื่อและคุณสมบัติคะแนน
สิ่งที่ฉันพยายามทำคือค้นหาอาร์เรย์ &
//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 ใดบ้างที่สามารถช่วยได้