/ Published in: ActionScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
input.onSetFocus = function(old:TextField):Void { Selection.setSelection(0, 0); var lo:Object = new Object(); lo.tf = this; lo.onMouseUp = function() { trace(this.tf); Selection.setSelection(0, this.tf.text.length); Mouse.removeListener(this); }; Mouse.addListener(lo); };