1 Reply Latest reply on Jan 23, 2011 12:45 PM by Ned Murphy

    Mask Question - Only allowing the mask to be moved when inside an instance

    johnbor

      Hi,

          I've set up a game, where the user has to guess what a picture is by moving a small hole/portal around.  I've used the mask feature to do this and managed to attach the portal to the mouse.  However, I need to stop the mouse dragging the portal when it moves outside of the picture/instance.  This is so the user can then press buttons to go back to main menu etc.

      Here's the code I've used to attach the portal

       

      onClipEvent (load) {

      startDrag("", true);

      Mouse.hide();

      }

       

      Hope that all makes sense (doubtful!).  Would be great if anyone can help me.

       

        Cheers,

                   John