drexle
08-16-2007, 07:38 PM
Hello,
I'm using AS2 on Flash MX2004 and I've encountered a perplexing problem. I'm making a tile-based game and am using a 2D array to store information about what images the tiles should display when they load. For your perusal is an error message relating to a line of code:
**Error** Scene=Scene 1, layer=a, frame=1:Line 224: ']' or ',' expected
var Arr_cg:Array = [01,10,08,10,01,10,10,10,10,10,10,80];
The problem is in array location [2]. It's when I use the value 08 (and also 09) that I get this problem.
this...
var Arr_cg:Array = [01,10,07,10,01,10,10,10,10,10,10,80];
compiles perfectly, as does anything that isn't 08 or 09 that I have thusfar attempted.
So.... is there something that flash just really hates about the values 08 and 09? Have any of you encountered anything like this before? I just tried it with a brand new empty file and still get the same error when I attempt to assign 08 to an array location. Can this be remedied, or does it require a workaround?
I'm using AS2 on Flash MX2004 and I've encountered a perplexing problem. I'm making a tile-based game and am using a 2D array to store information about what images the tiles should display when they load. For your perusal is an error message relating to a line of code:
**Error** Scene=Scene 1, layer=a, frame=1:Line 224: ']' or ',' expected
var Arr_cg:Array = [01,10,08,10,01,10,10,10,10,10,10,80];
The problem is in array location [2]. It's when I use the value 08 (and also 09) that I get this problem.
this...
var Arr_cg:Array = [01,10,07,10,01,10,10,10,10,10,10,80];
compiles perfectly, as does anything that isn't 08 or 09 that I have thusfar attempted.
So.... is there something that flash just really hates about the values 08 and 09? Have any of you encountered anything like this before? I just tried it with a brand new empty file and still get the same error when I attempt to assign 08 to an array location. Can this be remedied, or does it require a workaround?