1 2 3 4 5 6 7 8 | public static function setFocus(tf : TextField) : void { tf.type = TextFieldType.INPUT; tf.text = " "; tf.stage.focus = tf; tf.setSelection(tf.length, tf.length); tf.text = ""; } |
1 2 3 4 5 6 7 8 | public static function setFocus(tf : TextField) : void { tf.type = TextFieldType.INPUT; tf.text = " "; tf.stage.focus = tf; tf.setSelection(tf.length, tf.length); tf.text = ""; } |