Tag Archives: TextArea

Flex: 自适应大小TextArea, Resizable TextArea

http://www.flexer.info/2009/02/06/auto-resizable-text-area-component/

Posted in ActionScript | Tagged , | Leave a comment

Flex: 输入组件 – TextInput, ComboBox, Radiobutton, TextArea等 对其输入内容进行验证

如: 某编辑器:

image

代码:

textName.addEventListener(Event.CHANGE, onTextNameChange);//增加监听函数,监听EventChange, 如果不需实时验证, 可监听FlexEvent.VALUE_COMMIT事件.
//———–

Posted in ActionScript | Tagged , , , , , | Leave a comment

监听Flex中TextArea的DoubleClick Event

在TextArea中显示一段文字, 在双击时打开一个弹出的编辑窗口, 或者使之的Editable由false变为true. 需要先监听DoubleClick.

但作为一嫩鸟, 我总是发现他监听不了, click可以,但DoubleClick不可以.

自习看了TextArea的API,发现他有个继承自

Posted in Flex | Tagged , , | Leave a comment