I made a platform game from mad-sci's tutorial, but I want to make it so that when the score gets to a certain amount the movie jumps to a new frame. Here's the code I'm using in the frame:

if (score eq 8) {
gotoAndStop (2);

it doesn't work! I just can't figure out why.
when i pick up the item the score says 8 but nothing happens... Please help, I really need to know how to do this! ("score" is the name of the text-field that displayes the score...)

PS. I tried this code too but it was even more screwed up than the other one
if (score = 8) {
gotoAndStop (2); }
it just sets the score to 8! plz help!