我已将 FlexBuilder3 项目升级到 FlashBuilder4,我看到许多关于不支持的标签属性的编译错误:
只有主题为“halo”的“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 样式,但我宁愿有一个更简单的解决方案,因为还有许多与此类似的其他属性错误。