Hi, I need to know how to show current item as tool tip in ComboBox itemRollOver event at present i am using the below code,
private var tip:ToolTip
private function ItemRollOver(event:ListEvent):void
{
var currComboBox:ComboBox = event.currentTarget as ComboBox;
var tipInfo:String = currComboBox.dataProvider[event.rowIndex].label;
tip = ToolTipManager.createToolTip(tipInfo,this.mouseX,this.mouseY) as ToolTip;
}
private function ItemRollOut(event:Event):void
{
ToolTipManager.destroyToolTip(tip);
}
<mx:ComboBox id="cbLblStyle" fontFamily="Arial" dataProvider="{styleCollection}"
selectedItem="{labels.styleName}" itemRollOver="ItemRollOver(event)"
itemRollOut="ItemRollOut(event)" click="ItemRollOut1(event)"
close="cbLblStyle_changeEvt(event)" fontSize="12" x="12" y="240"
width="188"/>
but this has some problem, when i click the item or itemRollOver faster tool tip is not destroyed some time.
Is there any other way to do this?
Thanks in advance