Search code examples
apache-flexstylespaddingflex-sparkhalo

How to change paddingLeft and paddingRight of spark.components.Button?


The class 'Button' in package mx.controls has the style 'paddingLeft' and 'paddingRight'. But now I don't want to use this old Halo theme anymore, I'm moving everything to Spark.

However, I can't find these padding styles in spark.components.Button, and the documentation http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/Button.html doesn't show that spark Button has those styles.

Any ideas?


Solution

  • You have to do a specific button skin inherit the default one and add your rule inside of it.