<hc:AdvancedAutoComplete id="advancedAutoComplete" x="8" y="30" width="250"
dataProvider="{_xlcDP}"
labelField="@name"
matchType="anyPart"
showRemoveIcon="true"
selectedItemStyleName="none"
color="#000000"
change="execSearch()"
itemClick="{advancedAutoComplete.showBrowser()}"
actionsMenuDataProvider="{autoCompleteMenuData}"
browserFields="{[{label:'Building Name', field:'@name'}]}"/>
Naty,
This is what I would change in the code:<hc:AdvancedAutoComplete id="advancedAutoComplete" x="8" y="30" width="250" dataProvider="{_xlcDP}" labelField="@name" matchType="anyPart" showRemoveIcon="true" selectedItemStyleName="none" color="#000000" change="execSearch()" itemClick="{advancedAutoComplete.showBrowser()}" actionsMenuDataProvider="{autoCompleteMenuData}" browserFields="{[{label:'Building Name', field:'@name'}]}"/>
Naty,
I ran into this before and was not able to change the background color in the autocomplete component. So sorry my best advice is to change your text color for the whole Flex Viewer.
private function init():void
{
if(configXML)
{
searchTip = configXML.textsearchtip;
advancedAutoComplete.toolTip = searchTip;
}
_xlcDP = new XMLListCollection(dp.Building);
advancedAutoComplete.setStyle("textRollOverColor",0x000000);
advancedAutoComplete.setStyle("textSelectedColor",0x000000);
}