User Guide

26 Chapter 2: ActionScript Language Reference
The following example loops from 10 to 1, and each iteration of the loop decreases the counter
variable
i by 1.
for (var i = 10; i>0; i--) {
trace(i);
}