[fmx] very simple if statement which wont work

Hi,

sorry for my many posts, I am putting a project together and it is throwing many problems at me and I want to learn how to fix it.

My code is so simple, and i’m sure there might be a better way to do it also, I am open to suggestions. I just have a button and a movie clip (MenuUp) and i want the button to be able to make the movie clip jump to different frames…

on (release) {
if (_root.MenuUp=0) {
MenuPopup.gotoAndStop(1);
_root.MenuUp = 1;
} else {
MenuPopup.gotoAndStop(2);
_root.MenuUp = 0;
}
}

it’d driving me mad, tracing to the output window will only give me ‘0’ i can never get it to ‘1’.

Matt.