First thing: have a look at the Haxe syntax page, it will help you for a lot of your futur problems.
Next, the for in Haxe is a bit tricky, it's kind of a foreach, so you use it like this:
for(myElem in elements){
// loop here
}
Where elements implements Itarable (like an Array, a GenericStack or a Map). But if you want to increment a variable, you can create an Iterable by using the operator ...
. So, to take your code as an example:
for(i in 0...200){
// loop here
}
Here, i
will take as a value all the int between 0 and 200 (excluded).