Need help changen levels

does any one now how to skip a level when a certain amount of char are dead

eg when kill 2, gotoAndplay.nextframe

need help, try using the score eg when scroe =2 it goes and plays next frame but my code dosent wrk:

if (_root.score.text == 2){
gotoAndStop(2);
}else{
score.text = 0;
}

my game sample:
http://img172.imageshack.us/my.php?image=shootercf7.swf