6 Replies Latest reply on May 27, 2010 6:47 AM by eerkmans

    Right Click help - Flash AS3

    brooksrv Level 2

      I am working on a training simulation and would like to incorperate a right mouse click function. I have been using the code below with no problems.

       

       

      btn_01.addEventListener(MouseEvent.CLICK, mClick01);

       

      function mClick01(event:MouseEvent):void {
          gotoAndPlay("s02");
      }

       

       

       

      When I use RIGHT_CLICK or RIGHT_MOUSE_DOWN

      I get the following error.

       

      1119: Access of possibly undefined property RIGHT_CLICK through a reference with static type Class.

       

       

      I have no background in coding and am just starting to use AS3. Please help.