Can anyone provide me solution for this facing problem: I am using dropdownlist in flash 4.6 , where I have applied custom skin. custom skin contained on button , label, Datagroup. So, I want to change the color of specific item from list, as given option is only to change background rollOverColor,selectionColor but not contant color. Help me please If anyone have its solution.
custom Skin code is following:
<s:Scroller left="0" top="0" right="0" bottom="0" focusEnabled="false" minViewportInset="1" >
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
import mx.utils.ObjectUtil;
protected function dataGroup_creationCompleteHandler(event:FlexEvent):void
{
dataGroup.setStyle('rollOverColor','black');
dataGroup.setStyle('selectionColor','black');
}
]]>
</fx:Script>
<s:DataGroup id="dataGroup" itemRenderer="spark.skins.spark.DefaultItemRenderer"
creationComplete="dataGroup_creationCompleteHandler(event)" mouseDown="mosuedownEvt(event)">
<s:layout>
<s:VerticalLayout gap="0" horizontalAlign="contentJustify" />
</s:layout>
</s:DataGroup>
</s:Scroller>