老版 mx.controls.TextInput
Textinput类有个方法是setSelection(beginIndex:int, endIndex:int):void, 把两个参数都设为文本的length就成了
新版 spark.components.TextInput
选择指定范围的字符。
把两个参数都设为文本的length就成了