Mega Code Archive
Toggle color of the Button control between blue and the default by using this technique
public function toggleStyle():void {
if (cb1.selected == true) {
b1.setStyle("color","blue");
b1.setStyle("fontSize", 8);
} else {
b1.setStyle("color", null);
b1.setStyle("fontSize", null);
}
}
@namespace s "library://ns.adobe.com/flex/spark";
s|Button {
color: red; fontSize: 25;
}