Well, this may be a simple case to write. But there is a chance that you may get it wrong in the first go. Thats for this kind of loop has got a slightly different syntax.
The syntax for a for-loop in haxe looks as below
for(i in min...max)
{
trace('This is inside for loop.');
}
This loops from a value of “min” to “max” and “i” is the iterator.
Thats quite simple, even simpler than for-loops in other languages!
Happy haXe-ing