Help with Creating a Vertical Shooter Tutorial

Hi there, I’m a bit of a newbie to this so I decided to follow this http://www.kirupa.com/developer/actionscript/vertical_shooter.htm tutorial which really is great.

The problem is that the dragons don’t stop so I tried adding a time limit like this:

timer = 5;
countdown = function(){
timer--;
if(timer==0){
clearInterval(countdownInterval);
}
}
countdownInterval = setInterval(countdown,1000);
function goOn():Void{
  
 removeMovieClip(arrows);
 removeMovieClip(knight);
  gotoAndPlay(6);
 clearInterval(myDelay);
}
var myDelay:Number = setInterval(goOn,  5000);

Frame 6 is my game over screen and the removeMovieClip works for the knight and the arrows but not for the dragons. They still carry on.

If anyone has any ideas how to stop the dragons then I would really appreciate it

DJFW