Hi jlentz,
Can't really tell if this will fix your problem; from the code provided. But, instead of having the first item in the dataProvider as blank, you could use the prompt property instead:
<mx:ComboBox x="354" y="267" maxHeight="200" rowCount="10" width="60"
enabled="true" id="stateName" prompt="" >
<mx:ArrayCollection>
<mx:String>AK</mx:String>
<mx:String>AL</mx:String>
<mx:String>AR</mx:String>
</mx:ArrayCollection>
</mx:ComboBox>
-TH
--- In [email protected], "jlentz2112" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm hoping someone can explain a weird ComboBox effect I'm seeing.
> I'm trying to have the ComboBox drop down with the 50 states, but I
> want it to initially be blank. I've defined the ComboBox as:
> <mx:ComboBox x="354" y="267" maxHeight="200" rowCount="10" width="60"
> enabled="true" id="stateName"
> dataProvider="{patientDataScreenData.lastResult.stateLabels.String}"></mx:ComboBox>
>
> The dataProvider is <stateLabels>
> <mx:String label="" data=""/>
> <mx:String label="AL" data=""/>
> .....
> <mx:String label="WY" data=""/>
> </stateLabels>
>
> What's happening is that when I scroll the combobox, I get some of the
> states blanked out. If I use "ZZ" instead of "" for the first item,
> it works fine. If I use a space " ", it prints a 0 in the combobox,
> but the scrolling works fine. Only a "" causes blanks to overwrite
> some of my dropdown list. It looks like it is blanking the first
> state that is "off" the dropdown list area. Any thoughts on what is
> causing it or how to fix it?
>
> Thanks,
> jlentz
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___

