ActionScript 3.0 :: Declare The Variable / Array To Be Boolean Or NumberAug 18, 2010
Instead of this code:
var bomb1:Boolean = false;
var bomb2:Boolean = false;
var bomb3:Boolean = false;
Would it be possible to use an array like this? var bomb:Array = [false,false,false]; Or would it be better in another way? Isn't it necessary to declare the variable/array to be boolean or number if it would be that type in the index? Could I also use an array for the movieclips like bomb.visible = true; ? But how di I declare that array?