Create a style name for use with only the buttons you wish to style, like:
... //style declarations
Then apply "myStyle" directly to each button's styleName property.
@rtalton I tried that, but then I noticed that other components with built in buttons like Alert, will not have styled buttons. Is there a way I can just set the ControlBar style to use the default Button skins?
In your control bar, you are creating the buttons, right? Can you apply the desired style there?
No, I am sorry when I said control bar I meant FlexChrome, (I am also working on the ApplicationControlBar but that is unrelated to this problem, I just typed the wrong thing) whenever you set a Window in Flex to transparent, and systemChrome to none, then a FlexChrome skin gets used, which has minimize, maximize, and close, buttons built in. So I do not know how to apply styles to them directly, also I would need to know how to access the default skins for them so I could re-asign them.