<?xml version="1.0" encoding="utf-8"?>
<mx:Application name="TextArea_backgroundDisabledColor_test"
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<mx:Script>
<![CDATA[
import mx.events.ColorPickerEvent;
private function colorPicker_change(evt:ColorPickerEvent):void {
textArea.setStyle("backgroundDisabledColor", evt.color);
}
]]>
</mx:Script>
<mx:String id="lorem" source="lorem.txt" />
<mx:ApplicationControlBar dock="true">
<mx:Form styleName="plain">
<mx:FormItem label="backgroundDisabledColor:">
<mx:ColorPicker id="colorPicker"
selectedColor="#CCCCCC"
change="colorPicker_change(event);" />
</mx:FormItem>
<mx:FormItem label="enabled:">
<mx:CheckBox id="checkBox"
selected="true" />
</mx:FormItem>
</mx:Form>
</mx:ApplicationControlBar>
<mx:TextArea id="textArea"
text="{lorem}"
backgroundDisabledColor="#CCCCCC"
enabled="{checkBox.selected}"
width="100%"
height="100%" />
</mx:Application>