A pice of Actionscript

How can I make movieclipA dissapear when it comes into contact with movieclipB?

It’s for this game when a bullet comes into contact with the alien ship. If anyone can add how to cause other ships to appear when one ‘dies’ I’d be greatfull.

Uni

on MC A:
[AS]onEnterFrame = function(){
if(this.hitTest(_parent.movieClipB)){
removeMovieClip(this);
}
}[/AS]