2 CLICK functions on 1 button
Hello,
I'm making a menu in flash and I want that when I CLICK the button/movieclip moves up and when I CLICK again it moves down again.
I allready did it with MOUSE_OVER and MOUSE_OUT but that gave me problems.
Somebody any Idea's?
Here is the Code:
//Eventlisteners
menu_over.buttonMode = true;
menu_over.addEventListener(MouseEvent.MOUSE_OVER,onOver,false,0,true);
menu_over.addEventListener(MouseEvent.CLICK,onOut,false,0,true);
//Functions
function onOver(e:MouseEvent):void {
menu_over.gotoAndPlay("menu_op");
}
function onOut(e:MouseEvent):void {
menu_over.gotoAndPlay("menu_beneden");
}
Thanks