Dave
Dave

Reputation: 21924

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

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:

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?

Upvotes: 1

Views: 332

Answers (1)

Pedro
Pedro

Reputation: 155

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.

Upvotes: 0

Related Questions