首页 \ 问答 \ TextField输入无效(TextField input not working)

TextField输入无效(TextField input not working)

我正在开发一个类似于标准文本字段的类。 我实际上在其中使用默认的TextField。 我唯一的问题是textField无法正常工作。 如果我将其设置为textField.type = TextFieldType.INPUT,我可以删除文本,但我无法输入新文本。 此外,没有显示光标。 这是我的课程(部分内容): http//pastebin.com/LsgQjxpa

皮肤是这样的: http//pastebin.com/yDhEGHLm

我无法弄清楚我到底做错了什么。 我还要提到我正在为AIR Mobile编译并直接从Flash Builder进行测试


I am working on a class similar to the standard text field. I actually use the default TextField inside it. My only problem is that the textField does not work correctly. If I set it to textField.type = TextFieldType.INPUT, I can delete the text, but I can't enter new text. Also, the cursor is not being displayed. This is my Class (part of it): http://pastebin.com/LsgQjxpa

The skin is like this: http://pastebin.com/yDhEGHLm

I can't figure out what exactly I am doing wrong. I also have to mention that I am compiling for AIR Mobile and testing directly from Flash Builder


原文:https://stackoverflow.com/questions/11907878
更新时间:2023-02-16 13:02

最满意答案

Solaris ...您可能需要运行“nawk”而不是“awk”。


Solaris ... You probably need to run "nawk" instead of "awk".

相关问答

更多
  • 编辑 :添加缺失, $ awk '$1==p{next} NR%3==1{print; p=$1} NR%3==2{printf "%s, ",$0} NR%3==0' s.txt NA 10.0.0.0/16, Dallas1 10.1.0.0/16, Houston1 EMEA 10.2.0.0/16, Paris1 10.3.0.0/16, London1 APAC 10.4.0.0/16, Hong-Kong1 10.5.0.0/16, Shanghai1 EDIT: Added missing ...
  • 未经测试但如果不完全正确将会关闭: colNames="$*" awk -v colNames="$colNames" ' BEGIN { split(colNames,tmp) for (i in tmp) { names[tmp[i]] } FS=OFS="," } NR==1 { for (i=1; i<=NF; i++) { if ($i in names) { f[++nf] = $i ...
  • 你需要把它包裹在{}中 BEGIN { } { printf "Hello" } END { } you need to wrap it in {} BEGIN { } { printf "Hello" } END { }
  • 正如Tom Fenech指出的那样,shell代码和awk脚本是独立的世界,其独立变量彼此不知道。 (更一般地说,任何外部工具都在子进程中运行,因此不能修改调用shell的环境。) 为了将awk输出读入bash数组,你必须读awk的stdout输出 。 在Bash v4 +中,您可以执行以下操作: readarray -t a < <(awk 'BEGIN { FS="|" } { print $6 }' myFile) 这从awk的stdout输出中的各行创建了Bash数组"${a[@]}" 。 请注意 ...
  • 最后我找到了问题的答案。 数组声明和操作循环应该在匿名函数jQuery(document).ready(function(){...})中,而不是在它之外。 这样它将在jqQrid初始化之后而不是之前执行。 Finally i found answer of my question itself. Array declaration and manipulation loop should be inside of anonymous function jQuery(document).ready(func ...
  • Solaris ...您可能需要运行“nawk”而不是“awk”。 Solaris ... You probably need to run "nawk" instead of "awk".
  • 这个问题看起来和我的一个问题几乎相同,我在你的例子中使用了一个列来解决我的问题:)所以...... [[bash_prompt$]]$ cat log ; echo "########"; \ > cat test.sh ;echo "########"; awk -f test.sh log heading1 heading2 numberlist group name1 text 1,2,3 name2 ...
  • 您可以将事件票证ID分组,如下面的代码所示,只需创建一个新数组并将票证ID推送到数组中相应的事件ID ... $tickets = array( 0=> array( 'event_id'=>1,'ticket_name'=>'a','holder_name'=>'w','ticket_id'=>11), 1=> array( 'event_id'=>2,'ticket_name'=>'b','holder_name'=>'x ...
  • 在MUMPS中,您不需要sort函数,因为数组下标正在自动排序。 因此,最简单的方法是创建另一个数组,其中排序维度是第一个数据和值 - 第二个数据: for i=1:1:Arr(0) set piece1=$piece(Arr(i),"^",1), piece2=$piece(Arr(i),"^",2), Temp(piece1)=$get(Temp(piece1))_piece2_"," 运行该代码后,您将获得以下数组 Temp("ATC")="1,3," Temp("BTC")="2,5," Temp ...
  • 当你说: result=($(awk /string/ $files | awk -F, '{OFS=",";print $1,$4,$17}')) 输出将按空格分割。 将IFS设置为换行符,您应该看到所需的结果。 说: IFS=$'\n' result=($(awk /string/ $files | awk -F, '{OFS=",";print $1,$4,$17}')) 而是将不同的输出行捕获到数组中。 When you say: result=($(awk /string/ $files | ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)