The EventType abstract type provides type safety when matching dispatch events with the correct type of listener

For example, the following code has the wrong type in the event listener, it should be a MouseEvent:

addEventListener(MouseEvent.CLICK, function(event:TouchEvent) {});

OpenFL uses the EventType abstract for standard event types to turn these logical errors into a compile-time errors.

See also: