I made a contextMenu for my list. Then i have a function like this for code:
lmi5.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, function(e:ContextMenuEvent){
});
How can i get to know which listItem was clicked?
I was hoping that the “e.mouseTarget” would be an item, but its a list’s CellRenderer.
EDIT:
The ´e.mouseTarget´ is not the selected item in the context menu, but the display element on which you right-clicked. I guess you need to add one different event listener function to each item in the context menu, this way you can tell which one of them was clicked, for example: