【发布时间】:2010-01-16 11:39:48
【问题描述】:
我正在开发一个基于 Flex 的窗口应用程序。因为我使用了 textArea,现在当我输入一些字符,如 ctrl+b、ctrl+e 或 ctrl+q 时,它会在文本区域显示一些方形字符,我认为这些是一些 unicode 字符,但为什么要输入这些字符。
与 adobe 示例上的简单 textArea 控件不同,当我按下这些组合键时,没有输入任何内容,所以为什么只有我这样做。
这是我的窗口设置代码
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
showFlexChrome="false"
creationComplete="initApplication(); "
applicationComplete="txtArea.setFocus();"
width="310" alwaysInFront="true"
showTitleBar="false" showStatusBar="false"
height="350" resizing="true" frameRate="7" >
这是我的 textArea 控件
<mx:TextArea tabIndex="1" id="message" height="159" width="266"
focusEnabled="true" focusThickness="0" scroll="1" backgroundAlpha="0.4"
backgroundColor="{panel.getStyle('backgroundColor')}" borderColor="#CCCCCC"
styleName="textarea" borderThickness="1" change="whileType()"
maxChars="5120" verticalScrollBarStyleName="scrollbar" cornerRadius="4" >
</mx:TextArea>
请帮我解决这个问题?
谢谢, 贾斯万特
【问题讨论】:
-
你能把whileType()的代码也发一下吗?
-
whileType() 只是隐藏一个标签。私有函数 whileType():void{ lblHello.visible = false; }
标签: apache-flex unicode controls textarea key