Test this code in Flash:
var i:int = 0; for (var j:int = 0; j < 5000000; j++) { i=i+1; }// use about 300ms. i = 0; for (var j:int = 0; j < 5000000
I suggest instead of i++; use ++i; Because it is faster than both you mentioned.
i++;
++i;
Look at this good explanation: What is more efficient i++ or ++i?