开发者

Flex 4 skins -- when to include Actionscript Styling Code?

开发者 https://www.devze.com 2023-04-10 18:52 出处:网络
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?

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?

He开发者_Python百科re is an example of two people, both of whom have skinned the spark Panel.

With styling code:

http://blog.flexexamples.com/2009/10/19/repositioning-the-control-bar-on-a-spark-panel-container-in-flex-4/

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消