<?xml version="1.0" encoding="utf-8"?>
<Application name="FxTextArea_selectionColor_test"
xmlns="http://ns.adobe.com/mxml/2009"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<Script>
import mx.events.ColorPickerEvent;
private function colorPicker_change(evt:ColorPickerEvent):void {
textArea.setStyle("selectionColor", evt.color);
}
</Script>
<ApplicationControlBar dock="true">
<Form styleName="plain">
<FormItem label="selectionColor:">
<ColorPicker id="colorPicker"
selectedColor="#FFFF99"
change="colorPicker_change(event);" />
</FormItem>
</Form>
</ApplicationControlBar>
<FxTextArea id="textArea"
selectionColor="{colorPicker.selectedColor}">
<content><String source="data/lorem.txt" /></content>
</FxTextArea>
</Application>