4 Replies Latest reply: Oct 16, 2012 8:29 AM by kglad RSS

    How  to disable the script

    nikolaig Community Member

      I have a script running like this:

       

      Home_btn_RollOver_mc.addEventListener(MouseEvent.ROLL_OUT, outHandler_HomeAbUs_RollOver_btn);

       

                                    function outHandler_HomeAbUs_RollOver_btn(e:MouseEvent):void{

                                              Home_btn_SubBtns_timeLine.reverse();

                                    }

       

      I want to stop it working when I clik on a Home button.

       

      What kind of script do I have to run between {} to make it work?

       

      function onClick_Home_btn(event:MouseEvent) :void {

       

                          }

       

      I want the reverse not to happen and stay as it is. I want it to start working if other buttons are clicked