<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        <![CDATA[
            
        // dataP1 attempts to display an empty space in position 0 of the ComboBox but creates a bug where the label doesn't show on each repeat of the rowCount property
        [Bindable]
        private var dataP1:Array = ['', 'one','two','three','four','five','six','seven','eight','nine','ten'];
        
        // dataP2 attempts to display an empty space in position 0 of the ComboBox and supresses the bug by using a space instead of empty string
        [Bindable]
        private var dataP2:Array = [' ','one','two','three','four','five','six','seven','eight','nine','ten'];
        
        // normal array, space will be created using the prompt property
        [Bindable]
        private var dataP3:Array = ['one','two','three','four','five','six','seven','eight','nine','ten'];
        
        ]]>
    </mx:Script>
    <mx:Panel title="ComboBox dataProvider Bug (Spaces show when using empty string)" backgroundColor="#FFFFFF" width="450" height="200" layout="absolute">
        <mx:ComboBox id="cb1" dataProvider="{dataP1}" rowCount="3"  x="204" y="20" width="200"/>
        <mx:ComboBox id="cb2" dataProvider="{dataP2}" rowCount="3"  x="204" y="59" width="200"/>
        <mx:ComboBox id="cb3" dataProvider="{dataP3}" rowCount="3" prompt=""  x="204" y="99" width="200"/>
        <mx:Label x="10" y="22" text="Bug Exists (blanks showing)"/>
        <mx:Label x="10" y="61" text="Bug Supressed by using space"/>
        <mx:Label x="10" y="101" text="No bug when using prompt"/>
    </mx:Panel>
</mx:Application>