Ok. Firstly, I'm trying to declare a 2D array with all its values predetermined. However, trying to declare it with the following code seems to leave all the values as undefined. Anyone know what I'm doing wrong?
var lvl:Number = new Number((0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0),
(1,1,1,1,1,1,1,1,1,1,1));
Also, if I try to declare a class like this:
class Walls {
}
I get an error message saying "Classes may only be defined in external ActionScript 2.0 class scripts." What does this mean?