I'm trying to use a for loop to add all instances of the MC clam_aee to the Array ground_clam_array, in order to preform a hitTest on any instances of clam_aee.
var ground_clam_array: Array = new Array();
for(var i = 0; 1 < numChildren; i ++){
if(getChildAt(i)is clam_aee){
ground_clam_array.push(getChildAt(i));
}
}
Unfortunately, i just had to switch my document from AS3 to AS2 in order to allow nested script, and now my checker has an issue with this code. I assume this means that AS2 can't use Child or Push. In any case, how can I achieve adding any instances of clam_aee to ground_clam_array in order to hitTest ground_clam_array MCs in AS2?