【发布时间】:2015-04-29 18:27:12
【问题描述】:
我正在使用 amxmlc 从 MXML 源代码文件构建 SWF。我将 -swf-version=13 传递给 amxmlc。
在 MXML 源代码中,我有以下行:
<s:TextArea id="inputTextArea" width="100%" height="100" fontSize="28" borderColor="#000000" skinClass="spark.skins.mobile.TextInputSkin" />
运行 amxmlc 命令时出现以下错误:
...App.mxml(428): Error: Access of undefined property TextInputSkin.
<s:TextArea id="inputTextArea" width="100%" height="100" fontSize="28" borderColor="#000000" skinClass="spark.skins.mobile.TextInputSkin" />
...App.mxml(428): Error: Definition spark.skins.mobile:TextInputSkin could not be found.
<s:TextArea id="inputTextArea" width="100%" height="100" fontSize="28" borderColor="#000000" skinClass="spark.skins.mobile.TextInputSkin" />
为什么会出现这些错误?我需要能够使用 spark.skins.mobile.TextInputSkin 才能在 iOS 设备上使用软键盘。
【问题讨论】:
-
能否发布您正在使用的 amxmlc 命令以及您对 air-config.xml 文件所做的任何更改?
-
您正在构建移动项目吗?我不认为移动皮肤不适用于桌面应用程序
标签: apache-flex text air adobe skin