This code enables me to drag/drop the MC:
messageBox.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
messageBox.addEventListener(MouseEvent.MOUSE_UP, dropIt);
function closeMess(event:MouseEvent):void {
removeChild(messageBox);
}
function pickUp(event:MouseEvent):void {
event.target.startDrag();
}
function dropIt(event:MouseEvent):void {
event.target.stopDrag();
}
However on this MC there are 2 TextFields. If you click on the text field you obviously can’t drag it because you’re not clicking on the MC directly, is there a way to change this? So that I could even click in the textField area and still be able to drag the MC?