<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/11/14/setting-the-unfocused-text-selection-color-on-a-fxtextarea-control-in-flex-gumbo/ -->
<Application name="FxTextArea_unfocusedSelectionColor_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("unfocusedSelectionColor", evt.color);
        }
    </Script>

    <ApplicationControlBar dock="true">
        <Form styleName="plain">
            <FormItem label="unfocusedSelectionColor:">
                <ColorPicker id="colorPicker"
                        selectedColor="#FFFF99"
                        change="colorPicker_change(event);" />
            </FormItem>
        </Form>
    </ApplicationControlBar>

    <FxTextArea id="textArea"
            unfocusedSelectionColor="{colorPicker.selectedColor}"
            selectionVisibility="whenActive">
        <content><String source="data/lorem.txt" /></content>
    </FxTextArea>

    <FxTextInput text="Click here to remove FxTextArea focus"
            widthInChars="32" />

</Application>