I'm trying to make text fields drag-able within Flash using Action script 3,
I know how to make regular objects drag-able, but the problem occurs when I try to drag a textfield.
For regular objects I have been using the following code:
Event listeners:
Object.addEventListener(MouseEvent.MOUSE_DOWN, MouseDOWN);
Object.addEventListener(MouseEvent.MOUSE_UP, MouseUP);
Functions:
function MouseDOWN(evt:Event):void {
evt.target.startDrag();
}
function MouseUP(evt:Event):void {
evt.target.stopDrag();
}
I've tried many things such as changing 'target' to 'currentTarget' etc, but still can not find a solution.
So my question is, how can I make text fields selectable and drag-able?