Thanks, it’s disappointing that this isn’t a built in function, since I use this type of thing a lot. But I already wrote a function to perform the same task:
static function Count(myarray : Array, mybool : boolean){
//counts occurences of boolean in array
var mycount = 0;
for (var n = 0; n < myarray.length; n++){
if (myarray[n] == mybool) mycount ++;
}
return mycount;
}