Only the half excess geometries was clear.
private function clearExcessGeometries(nbrOfItems:Number):void
{
while (this.geometryCollection.items.length > nbrOfItems)
{
this.geometryCollection.removeItemAt(nbrOfItems++);
}
}
The items length decreases in the same time that nbrOfItems increases ;-).
It's more efficient to don't increase nbrOfItems.
Original issue reported on code.google.com by nicolascoquelet@gmail.com on 28 Sep 2009 at 1:01
Original issue reported on code.google.com by
nicolascoquelet@gmail.com
on 28 Sep 2009 at 1:01Attachments: