When you click on one of the button the movieclip is suppose to play “open” while the other movieclip is suppose to play “close” if they are open or play frame 1 if they’re not open. I don’t know why it’s not working. Please help!
[COLOR=#993300]var[/COLOR] menuState:[COLOR=#993300]Number[/COLOR] = [COLOR=#000000]0[/COLOR];
[COLOR=#993300]function[/COLOR] openBtnCOLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#993300]if[/COLOR] [COLOR=#000000]([/COLOR]menuState == [COLOR=#000000]0[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
theBtn.[COLOR=#993300]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];
menuState = [COLOR=#000000]1[/COLOR];
[COLOR=#993300]trace[/COLOR]COLOR=#000000[/COLOR]
[COLOR=#000000]}[/COLOR] [COLOR=#993300]else[/COLOR] [COLOR=#000000]{[/COLOR]
theBtn.[COLOR=#993300]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR]
menuState = [COLOR=#000000]0[/COLOR];
[COLOR=#993300]trace[/COLOR]COLOR=#000000[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#993300]function[/COLOR] closeBtnCOLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#993300]if[/COLOR] [COLOR=#000000]([/COLOR]menuState == [COLOR=#000000]1[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
theBtn.[COLOR=#993300]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];
menuState = [COLOR=#000000]0[/COLOR];
[COLOR=#000000]}[/COLOR] [COLOR=#993300]else[/COLOR] [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR]menuState == [COLOR=#000000]1[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
theBtn.[COLOR=#993300]gotoAndStop[/COLOR]COLOR=#000000[/COLOR]
menuState = [COLOR=#000000]0[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
btn0.[COLOR=#993300]onRelease[/COLOR] = [COLOR=#993300]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
openBtnCOLOR=#000000[/COLOR];
[COLOR=#993300]trace[/COLOR]COLOR=#000000[/COLOR]
[COLOR=#000000]}[/COLOR];
btn1a.[COLOR=#993300]onRelease[/COLOR] = [COLOR=#993300]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
openBtnCOLOR=#000000[/COLOR];
closeBtnCOLOR=#000000[/COLOR];
closeBtnCOLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR];
btn2a.[COLOR=#993300]onRelease[/COLOR] = [COLOR=#993300]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
openBtnCOLOR=#000000[/COLOR];
closeBtnCOLOR=#000000[/COLOR];
closeBtnCOLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR];
btn3a.[COLOR=#993300]onRelease[/COLOR] = [COLOR=#993300]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
openBtnCOLOR=#000000[/COLOR];
closeBtnCOLOR=#000000[/COLOR];
closeBtnCOLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR];