【发布时间】:2010-10-25 08:52:00
【问题描述】:
我想设置可编辑 ComboBox 的 TextInput 的 maxChars 属性。我目前正在使用更改事件将文本修剪为一定数量的字符:
private function nameOptionSelector_changeHandler(event:ListEvent):void
{
nameOptionSelector.text = nameOptionSelector.text.substr(0, MAX_LENGTH);
}
这感觉有点矫枉过正。必须有更好的方法来做到这一点......
【问题讨论】:
标签: actionscript-3 apache-flex combobox textinput