When i did:
if(this.hitTest(_root.ship))
{
explode();
}
the enemy ships wouldnt disappear when i crashed into them. If you are having the same problem, try writing this command instead:
if(this.hitTest(_root.ship))
{
this.removeMovieClip();
}
It worked for me. Using the above command, the part where you create the function "explode()" won't be needed.