How can I prevent mouse selection (and carriage movement) using Editable TextField (), this one doesn't seem to work completely when selecting text, but it prevents a click. I want to keep the cursor where it goes.
protected function handleMouseDEvent(evt:MouseEvent):void {
if (evt.type == MouseEvent.MOUSE_DOWN) {
var max : int;
max = this.text.length;
this.setSelection(max, max)
}
}
source
share