for loop inquiry
I used the following for loop code below and this caused Flash to freeze and/or crash
for (var i:int = 1; i <= 30; i + 5)
{
trace(i);
}
I found out that "i + 5" is causing it to freeze up. I was trying to for an incremental results of i by 5. Unless I use "i++", the loop will cause Flash to freeze up and/or crash. Of course, I found a workaround in which I declared a variable that will multiply i by 5.
I just wanna know why Flash crashes if I use i+5 rather instead of i++