here's the problem:
you're using splice wrong! it's enemy_arr.splice(start, end), not (start, count)
so you should put splice(i, i)!! for the first enemy, what you have would delete the first enemy arr(0), and the next enemy arr(1)!
2 things:
1. in your deletemc function, if you remove an element from an array as you're cycling through it, make sure to write i-- to not skip the next enemy (as the next enemy will immediately get the deleted element's index and you skip over it on next loop). or you can do
Code:
for (var i:int=enemy_arr.length - 1; i >= 0; i--) {
2. when checking conditional for boolean, you wrote:
Code:
if (mybool == true)
//or
if (mybool == false)
and you only need to (and should) write:
Code:
if (mybool)
// or
if (!mybool)
to the computer, what you wrote looks like
if (true == true) and that will be compared and the result will look like
if (true). so it's kinda an unnecessary step
good luck