event listener on dropdown list item
Hello,
I'd like to display tool tips, once the user holds his mouse on an item of an opened combobox.
Ifyou open the drop down list of a combo box, you'll see a list ofelements/items. Each of them can be accessed e.g. viamyCombo.getItemAt(0) .
To me it seems I only get an object with adata and label property. But I think there must be more to it, becausewhen you hold your mouse over a sub-element, it'll be highlighted. Thismeans that there is some event listener on that very single item. Sohow can I do this?
myCombo.getItemAt(0).addEventListener(MouseEvent.MOUSE_OVER, ShowToolTip); //impossible
function ShowToolTip(evt)
{
trace(evt.currentTarget.label);//stub action
}
Thanks in advance.
Gilzad