I have more than one Event Listener that calls a specific function, and I want to add if statements to check what event is being passed. How can I do that?
I tried a simple comparison like:
if(evt == MouseEvent.MOUSE_OVER)
But it will give an error because I comparing a MouseEvent object and a String.
You should use the
typeproperty of the event: