sorry if , this seems quite lazy
maybe someone knows better than my
google search (if you have such time) and clearer
than my actionscript for games book._plain stupid-just;whatswrongwiththis
var _firstrow:Array;
_firstrow=new Array();
_firstrow=[1,2,3,4,5];
var _secondrow:Array;
_secondrow=new Array();
_secondrow=[6,7,8,9];
var _thirdrow:Array;
_thirdrow=new Array();
_thirdrow=[10,11,12,13,14];
because all your code is doing is creating 3 different arrays. each with a different set of numbers inside. the code also has no errors, so it will work. so what exactly are you asking?
BTW, leading underscore is a useful naming convention for class properties that have getter and setter.
ie: getter and setter expose the name "firstrow", while the internal (hidden) class property uses "_firstrow".
is especially redundant, since the [] pattern is creating a new Array instance. You're creating an empty new Array, then immediately throwing it away to replace it with a pre-populated new Array.
Like, these are equivalent:
_secondrow=new Array();
_secondrow=[];
thanks a whole bunch Guys! yeah one member said 'No errors' but -somehow there were errors!~It was ???kinda a long one. The last response also does (thank.) look like an example in my Actionscript/Flash books!! Cheers
if your wondering, why i asked its because i have been programming
for 30 weeks now! and also my eyes are known to be somewhat stigmatised! You guys are the bomb.