1 Reply Latest reply on Nov 3, 2007 10:32 PM by kglad

    Replacing the Cursor

    JoeLongstreet Level 1
      I am creating a flash document where the user is able to pick their cursor. I have buttons that gives a variable (buttonVar) a specified number. Button 1 gives buttonVar a value of 1, Button 2 gives buttonVar a value of 2, and Button 3 gives buttonVar a value of 3. The three things that will replace the cursor are movieclips and are off stage so they are not visible. I thought if I attached this code to each movie clip it would work:

      onClipEvent(enterFrame) {
      if (buttonVar == 0) {
      _x = _root._xmouse;
      _y = _root._ymouse;
      Mouse.hide();
      }
      }

      I also tried this:

      onClipEvent(enterFrame) {
      if (buttonVar == 1) {
      startDrag(this, true);
      }
      }

      but neither one works. Any suggestions?