Can I change at runtime a given definition in of a style ? In example, I have the following defined:
fillAlphas: 0.4, 0.8, 0.2, 1.0;
fillColors: #FFFFFF, #FFFFFF, #FFFFFF, #FFFFFF;
When the stage is large, I want to increase the padding of all buttons. Is it possible?
Sure you can, you can use yourcontrol.setStyle("controlStyleProperty","value")
yes michael is rite, we can do it same way..
If you want to change Cascading Style Sheets (CSS) dynamically, you can compile a css into a swf to load at runtime.
This will allow you to have multiple themes for your application just like HTML can.
Now!, if you just want to change padding of a button according to its size, you can bind the style to some ratio of the width of the button but this is not done in CSS but must be done in actionscript/MXML.