I see that my employees use this awful syntax a lot:
var mc1: MovieClip; var mc2: MovieClip; var mc3: MovieClip; var mc4: MovieClip; var mc5: MovieClip; for (var i:int = 1; i <= 5; i++) { addChild(this["mc" + i]);
Since I'm the boss of sod, I am compiling a list of reasons why they should use arrays for iteration rather than the nasty square syntax. I know that it is wrong to use this syntax, but I cannot come up with enough convincing reasons why they should refuse it.
Hit me with some facts, please.
flash actionscript-3
hamishtaplin
source share