This is mystifying. The following array,
mcRotation = [000, 001, 002, 003, 004, 005, 006, 007];
works just fine as is (well, it generates no errors). But as soon as I add one more element to it, 008, it generates an error:
Error Symbol=alphabet bar graphics, layer=actions, frame=1:Line 8: ‘]’ or ‘,’ expected
I might as well forget about inputing the rest (up to 025). Just to verify, here it is up to 008 as I’m typing it:
mcRotation = [000, 001, 002, 003, 004, 005, 006, 007, 008];
You’re probably wondering what’s with the extra leading zeroes, well they are there for spacing purposes to help me keep track of which element in the array I am working on. Here’s what the whole thing looks like so far:
// [000, 001, 002, 003, 004, 005, 006, 007, 008, 009, 010, 011, 012, 013, 014, 015, 016, 017, 018, 019, 020, 021, 022, 023, 024, 025];
mcPosY = [000, 001, 002, 003, 004, 005, 006, 007, 008, 009, 010, 011, 012, 013, 014, 015, 016, 017, 018, 019, 020, 021, 022, 023, 024, 025];
mcRotation = [000, 001, 002, 003, 004, 005, 006, 007, 008, 009, 010, 011, 012, 013, 014, 015, 016, 017, 018, 019, 020, 021, 022, 023, 024, 025];
mcLetters = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
ugly, huh.
On a side note, you “create more dynamic code” guys would be proud of me. I generated an array of 26 elements each incremented by 12.3077 using the following function:
var mcPosX:Array = new Array();
for(var i = 0; i < 25; i++){
mcPosX* = i * 12.3077;
}