2 Replies Latest reply on Jun 20, 2006 5:42 AM by pindus

    Move Cursor in MC

    pindus
      I'm trying to change the cursor when I'm dragging a movieclip. The cursor i want to use it the "move" cursor, which (from what I understand) doesn't exist in the preset cursors.

      I copies the icon windows uses and made it into at mc in flash. I then tried to hide the mouse and then drag the pointer_mc instead. The problem is, it seem I cant drag 2 mc:s at once.

      Code for my Big MC, where i want the pointer to change when I drag.

      on(press) {
      startDrag(this);
      }
      on(release) {
      stopDrag();
      }

      I tried with the

      mouse.hide()
      and

      startDrag(pointer_mc)

      in the on(press)
      but then I'm not able to drag the big mc, only the pointer_mc.

      Does anyone have an idea what I should do next?
        • 1. Re: Move Cursor in MC
          2m Level 2
          try:

          on(press) {
          startDrag(this);
          Mouse.hide();
          _global.cursorListener = new Object();
          cursorListener.onMouseMove = function (){
          _level0.pointer_mc._x = _root._xmouse;
          _level0.pointer_mc._y = _root._ymouse;
          }
          _level0.pointer_mc._visible = true;
          Mouse.addListener(cursorListener);
          }
          on(release) {
          stopDrag();
          _level0.pointer_mc._visible = false;
          Mouse.show();
          Mouse.removeListener(cursorListener);
          delete _global.cursorListener;
          }
          • 2. Re: Move Cursor in MC
            pindus Level 1
            Worked perfectly!!

            Thanx a lot!