Stop(); action not working!

hi, sorry to bother you all again. Im working on a game where you destroy bricks with a ball. I defined a variable ‘score’, this represents the number of bricks on the screen.

On each of the bricks, i put this script:

_parent.score --; //decrement score, so each time the ball hits a brick the ‘score’ will countdown .

basically, I want the game to proceed to a new level on a different frame when all the bricks have disappeared. so inputted:

onClipEvent (enterFrame)
{
if (_root.score ==0)
{
gotoAndPlay(4); //the frame where the new level is
}
}

I’ve put a stop(); action on the frame, but when all the bricks disappear and the event is called upon, it plays passed it without stopping.

Could anyone suggest why?

thx a heap