I'd like my associative array indexed by Point (or, in general, an Object) that has a semantic equality. Unfortunately
var p:Point = new Point(1, 1);
var q:Point = new Point(1, 1);
var dict:Dictionary = new Dictionary();
dict[p] = 5;
trace(dict[p]); // => 5
trace(dict[q]); // => undefined
because
trace(p===q); // => false
Is there any way to tell Dictionary how to order its keys, or is there a different class to use for this type of thing?