Flash, buttons won't work while dragging MC

Out of context: Reply #21

  • Started
  • Last post
  • 29 Responses
  • Visia0

    don't use the startDrag() function. That monopolized the mouse. Instead you'll need to do something along these lines:

    on(press){
    if(dragging = false){
    dragging = true;
    myDragMC._x = _xmouse;
    myDragMC._y = _ymouse;
    }else{
    dragging = false;
    myDragMC._x = myDragMC._x;
    myDragMC._y = myDragMC._y;
    }
    }

    It's rough but you'll need to figure out how to refine it yourself. I've given you everything you'll need right there.

View thread