For in ActionScript
The language extracted from the input is ActionScript. Below is the translation of the provided code and explanation into ActionScript, formatted in Markdown suitable for Hugo.
for
is ActionScript’s looping construct. Here are some basic types of for
loops.
Example 1: Basic for loop with a single condition
The most basic type, with a single condition.
Example 2: Classic initial/condition/after for loop
A classic initial/condition/after for
loop.
Example 3: Iterating N times using range
Another way of accomplishing the basic “do this N times” iteration is using a for
loop over a range of numbers.
Example 4: Infinite loop until break
for
without a condition will loop repeatedly until you break
out of the loop or return
from the enclosing function.
Example 5: Continue to next iteration of the loop
You can also continue
to the next iteration of the loop.
Output
Here’s what you would see when running these examples:
We’ll see some other for
forms later when we look at range
statements, channels, and other data structures.