Flex 4 皮肤——何时包含 Actionscript 样式代码?
当使用 Flash Builder 基于现有外观创建新组件外观时,可以选择是否包含 Actionscript 样式代码。这段代码不是总是必要的吗?
这是两个人的例子,他们都对 Spark 面板进行了剥皮。
使用样式代码:
没有样式代码:
http://www.popamihai.com/2010/11/flex/skinning-flex-4-components-skinning-the-spark-panel-component/
但它们似乎都在运行美好的。怎么会这样呢?
When using Flash Builder to create a new component Skin based on an existing Skin, one has the option to include Actionscript styling code or not. Wouldn't this code always be necessary?
Here is an example of two people, both of whom have skinned the spark Panel.
With styling code:
Without styling code:
http://www.popamihai.com/2010/11/flex/skinning-flex-4-components-skinning-the-spark-panel-component/
But they both seem to run fine. How can this be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您正在扩展一个类,样式代码仍然会应用。
当您打算更改样式时,应该添加样式代码。
The styling code still gets applied due to the fact that you're extending a class.
You should add the styling code when you intend to change it.