【问题标题】:backgroundDisabledColor error when upgrading from Flex3 to FlashBuilder 4从 Flex3 升级到 Flash Builder 4 时出现背景禁用颜色错误
【发布时间】:2010-04-30 01:52:36
【问题描述】:

我已将 FlexBuilder3 项目升级到 FlashBuilder4,我看到许多关于不支持的标签属性的编译错误:

只有主题为“光环”的“mx.controls.TextInput”类型才支持“backgroundDisabledColor”样式

这是有问题的 mxml 元素:

<mx:TextInput  x="245" y="86" id="code1" maxChars="15" change="enableButton(event)"  cornerRadius="9"  borderStyle="solid" backgroundDisabledColor="#7977b6" /> 

...针对此特定错误的最佳解决方法是什么?通过将“backgroundColor”属性更改为“contentBackgroundColor”,我能够轻松解决类似的错误,并希望 backgroundDisabledColor 也有一个简单的解决方法。我意识到我可以应用 css 样式,但我宁愿有一个更简单的解决方案,因为还有许多其他类似于此的属性错误。

【问题讨论】:

    标签: apache-flex actionscript flexbuilder mxml flash-builder


    【解决方案1】:

    我怀疑如果您将其添加为编译器参数,它应该可以工作:

    -theme=${flexlib}/themes/Halo/halo.swc

    一旦您指定了 Halo 主题,我希望错误会消失。

    来自此博客的更多信息:

    http://blog.flexexamples.com/2009/07/14/using-the-halo-theme-in-flex-4/

    或者,您可以使用 Flash Builder“多 SDK”功能将您的应用恢复为 Flex 3。

    【讨论】:

    • 谢谢杰弗里。顺便说一句,你的播客很棒。
    • 感谢收听/观看。
    猜你喜欢
    • 1970-01-01
    • 2012-07-08
    • 1970-01-01
    • 2022-01-10
    • 2018-12-27
    • 1970-01-01
    • 2016-11-22
    • 2023-02-08
    • 1970-01-01
    相关资源
    最近更新 更多