I know there is a for loop topic just below this one, but I think my question is different enough to not warrant flaming. My first question is this. why does the first not work but the second does ? This one traces undefined.
for (i=1; i<100; i++) {
myArray* = i;
trace(myArray*);
}
This one traces:
undefined
undefined
etc.
for(i=0; i<10; i++) {
array * = (i + 5)*10;
trace(array*);
}
This one traces
50
60
70
80
90
100
110
120
130
140
My other question, very related, is this: How do you address different MCs with numbers using loops. What I mean is, how would you write a multiple (more than two) hit detection script.