Here is a Question For YOU

I have a button inside of a movie clip. This movie clip moves across the screen. When you click the button you get one point. Now what i wanted to happen was that once you have accumulated 6 points you goto the next frame, soo this is what i used:

if(score == 6){
gotoAndPlay(4)
}

BUT… nothing happens, you get the 6 points, and thats it, it does NOT go to the next frame. WHY???