Tag Archives: TextArea

Flex4 Spark TextArea 设置自适应大小及派发鼠标滚动事件

记得在使用Flex4之前, 看过一篇介绍TextArea自适应高度的文章, 监听Event, 动态改变高度.  很少用TextArea, 也没用过. 在Flex4, 使用Spark界面时, TextArea可设为自动适应.
设置heightInLines = NaN -  如果

More…

Posted in ActionScript | Tagged , , | Leave a comment

Flex: 自适应大小TextArea, Resizable TextArea

Flex3中: http://www.flexer.info/2009/02/06/auto-resizable-text-area-component/
Flex4 Spark组件已支持自适应高度: http://liguoliang.com/2010/auto-resizable-text-ar

More…

Posted in ActionScript | Tagged , | Leave a comment

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

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

More…

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

监听Flex中TextArea的DoubleClick Event

在TextArea中显示一段文字, 在双击时打开一个弹出的编辑窗口, 或者使之的Editable由false变为true. 需要先监听DoubleClick.
但作为一嫩鸟, 我总是发现他监听不了, click可以,但DoubleClick不可以.
自习看了TextArea的API,发现他有个继承自

More…

Posted in Flex | Tagged , , | Leave a comment