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){
score.text = 0;

my game sample: