<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/halo" 
               minWidth="1024" minHeight="768" viewSourceURL="srcview/index.html">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
        <mx:StringValidator
            id="sv"            
            source="{comboBox}"
            property="selectedItem"            
            triggerEvent="change">            
        </mx:StringValidator>
            
    </fx:Declarations>
        
    <fx:Script>
        <![CDATA[
            protected function creationCompleteHandler():void
            {
                sv.validate();
            }

        ]]>
    </fx:Script>
    <s:DropDownList id="comboBox"
                    horizontalCenter="0"
                    top="20"                                        
                    creationComplete="creationCompleteHandler()">
        <s:dataProvider>
            <s:ArrayList source="[The,quick,brown,fox,jumps,over,the,lazy,dog]" />
        </s:dataProvider>
    </s:DropDownList>
</s:Application>