<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/12/19/setting-the-content-color-on-an-fxtextinput-control-in-flex-gumbo/ -->
<Application name="FxTextInput_contentColor_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white">

    <Script>
        <![CDATA[
            import mx.events.ColorPickerEvent;

            private function colorPicker_change(evt:ColorPickerEvent):void {
                textInput.setStyle("contentColor", evt.color);
            }
        ]]>
    </Script>

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

    <FxTextInput id="textInput"
            text="The quick brown fox jumps over the lazy dog" />

</Application>