A little-known fact about AS3 is that object iteration occurs randomly (“little-known” apparently to even some Flash Player engineers, as evidenced in this thread at flashkit). This happens with both for..in and for each..in loops.

outputs:

Even the above output is not predictable, and running the sample is likely to have different results.