errrr that's exactly what the MouseEvent class is for. Can you explain what you are trying to do, not how you are trying to solve it.