# \[fmx\] very simple if statement which wont work

**URL:** <https://forum.kirupa.com/t/fmx-very-simple-if-statement-which-wont-work/46240>\
**Category:** flash\
**Created:** [March 22, 2004, 9:34pm UTC](https://forum.kirupa.com/t/fmx-very-simple-if-statement-which-wont-work/46240 "2004-03-22T21:34:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shangrula](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@shangrula](https://forum.kirupa.com/u/shangrula)\
**Post date:** [March 22, 2004, 9:34pm UTC](https://forum.kirupa.com/t/fmx-very-simple-if-statement-which-wont-work/46240/1 "2004-03-22T21:34:09Z")

</div>

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.
