Programmer's Guide > Interfaces > Application interface > createEvent method
  
createEvent method
Creates an event of type ApplicationEvent.
createEvent(eventType )
Parameters
StringeventType
The eventType parameter specifies the type of Event interface to be created. If the Event interface specified is supported by the implementation this method will return a new Event of the interface type requested. If the Event is to be dispatched via the dispatchEvent method the appropriate event init method must be called after creation in order to initialize the Event's values.
Returns
Event. The newly created Event
Throws
AOMException
Raised if the implementation does not support the type of Event interface requested.