AS3 (VM2) versus JavaScript – performance

Back in 2004, I was comparing loop performance in AS2 – for, while, and do while. That expanded to testing the same against JavaScript. The upshot (!) was that do-while and while were the fastest, and pretty close to each other, and much faster than for, in both JS and AS2. More surprising to me […]

Object Iteration in AS3 *is* random

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.