Flex 3.5 style individual buttons
If I have a button named:
<mx:Button id="backButton">
and another named:
<开发者_运维问答;mx:Button id="cancelButton"
How can I style each button seperatly?
Can I give each button a style, then set the style in CSS... E.g.
Button #style {
backgroundColor: red;
}
In CSS:
.firstButton {
backgroundColor: red;
}
.secondButton {
backgroundColor: blue;
}
Buttons:
<mx:Button id="backButton" styleName="firstButton" />
<mx:Button id="cancelButton" styleName="secondButton" />
精彩评论