2 bugs in my Flash game

Hi there

I’m in the process of finishing a game in Flash 5 ActionScript. However, I’m struggling with 2 bugs:

  1. when one enemy tank is hit, other enemy tanks explode.

  2. The trajectory of the player tanks missile follows the direction
    the player tank while the tank is moving.

I did attempt aligning the missile with the position of the tank to appear wherever it was located (but to be independent of the tank after being fired).

After constantly trying and failing to get the desired effect with code from reliable sources, I had to come up with my own workaround. It’s mostly effective but slightly flawed.

I’d be grateful if someone showed me how to do it properly. I’ve attached the relevant Flash file. Many thanks for any help offered.

meandmymachine