.. _UIEvent.initUIEvent: ================================================ UIEvent.initUIEvent ================================================ void **initUIEvent** (:ref:`String` **type**, :ref:`Boolean` **captures**, :ref:`Boolean` **bubbles**, :ref:`Object` **view**, :ref:`Number` **detail**) Parameters ---------- +--------------+--------------------------------------------------+ | **type** | The event type. | +--------------+--------------------------------------------------+ | **captures** | Set to true if this event can be captured. | +--------------+--------------------------------------------------+ | **bubbles** | Set to true if the event bubbles. | +--------------+--------------------------------------------------+ | **view** | The ScriptUI element that this event relates to. | +--------------+--------------------------------------------------+ | **detail** | The click count for a mouse-click event. | +--------------+--------------------------------------------------+ Description ----------- Initializes an event.