[AS2] bug filled turret game

Hi! Thanks for last time, and sorry but I’m back with more problems…

  1. I’ve started creating a turret game for my website, and I’ve run in to a problem. When you get hit by your enemy and die, the enemies stay on screen. Is there I code I can use to remove them?
    Game found here: http://jernberg.net/jonathan/flash/Flash_Portal_Turret.html

  2. I’m trying to make the game harder as your score goes up, but there is something wrong with the code I’m using to try and make it harder. Maybe someone can explain to me what I’m doing wrong or how it’s supposed to be done?
    This is the code I use now:

onClipEvent (enterFrame) {
    if (_root.score == 0) {
        _root.numCube = 20
        _root.speed = random(4)+2;
    }

This code is used to increase the number of enemies (Cube) and make them come at you faster. Since I’m a total retard and noob, I’m not sure wich part of the code to post here and if I posted it all it would be maybe a bit to long… But I think you guys know what to look for?

  1. Anyone know a good tutorial for highscore lists? A game ain’t fun if ya can’t be da best!