What is wrong with my actionscript?

morkus64

Diamond Member
Nov 7, 2004
3,302
1
81
On a button on my main menu screen i have:

on (release) {
_global.page = "design";
_root.gotoAndPlay(40);
}

and on another:

on (release) {
_global.page = "drawing";
_root.gotoAndPlay(40);
}

it goes to 40 and plays fine... then stops on 59 where i have:

stop();
if ( page = "drawing" ) {
gotoAndStop(80);
}
if ( page = "design" ) {
gotoAndStop(70);
}

But whether i press design or drawing, it goes to frame 70... wtf?