@namespace mx "http://www.adobe.com/2006/mxml";
mx|Button {
color: #66CCFF;
}
[Bindable]
private var n:Number;
public function changeStyles(e:Event):void {
if (myButton.getStyle("color").toString(16) == "ff0000") {
myButton.setStyle("color", 0x66CCFF);
} else {
myButton.setStyle("color", "Red");
}
n = myButton.getStyle("color");
}