3 Replies Latest reply on Oct 4, 2011 4:44 AM by Ned Murphy

    function onMouseDown(){

    Ron Colmen Level 2

      The below MouseDown() event works on for a squire area. How can trigger a MouseDown() event when clicked on a custom shape movieclip?

       

      function onMouseDown(){

          des_width = gmb_mc._width;

          des_height = gmb_mc._height;

          var mouseHit = _root.des_mc._xmouse >= "0" && _root.des_mc._xmouse <= 106 && _root.des_mc._ymouse >= 0 && _root.des_mc._ymouse <= 170;

          if(mouseHit){

         // trace("This is the area!!");

          }

      }