How to do you evaluate the number of clicks of a button?

Hi
Wonder if anyone can else, this is giving me a head wobble.
Very new to actionscripting as this code will no doubt show.

I’ve created a dropdown menu which drops down onClick. gotoAndPlay(“2”)
I have been trying to create some AS 3 code that, evaluates the number of clicks and therefore, if the menu button is clicked for a second time it goes to it’s original state. (“1”) and creates the illusion of closing. Rather than as it does at the moment and repeats the the process of opening.

any help greatly appreciated.

handynut

Code:

var menuclicks:Number = 1;

function onMenuClick(evt:MouseEvent):void {
gotoAndPlay (“2”);
if (menu_btn.MouseEvent.CLICK > 1)
gotoAndStop (“1”);
}
menu_btn.addEventListener(MouseEvent.CLICK, onDesignClick);