Change control color in State
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:states> <mx:State name="landState"> <mx:SetStyle target="{aa}" name="color" value="0xFF0000" /> <mx:SetStyle target="{b}" name="color" value="0xFF0000" /> <mx:SetStyle target="{c}" name="color" value="0xFF0000" /> </mx:State> <mx:State name="airState"> <mx:SetStyle target="{d}" name="color" value="0xFF0000" /> <mx:SetStyle target="{e}" name="color" value="0xFF0000" /> </mx:State> </mx:states> <mx:VBox id="vbox"> <mx:HBox> <mx:Button id="land" label="ABC" click="currentState='landState'" /> <mx:Button id="air" label="DE" click="currentState='airState'" /> </mx:HBox> <mx:CheckBox id="aa" label="A" /> <mx:CheckBox id="b" label="B" /> <mx:CheckBox id="c" label="C" /> <mx:CheckBox id="d" label="D" /> <mx:CheckBox id="e" label="E" /> </mx:VBox> </mx:Application>