UIEvent.UIEvent

UIEvent UIEvent (String type, Boolean captures, Boolean bubbles, Object view, Number detail)

Parameters

type The event type. See?UIEvent.type?property.
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

Creates an event.

The?UIEvent?object is normally created by ScriptUI and passed to your event handler. However, you can simulate a user action by constructing an event object and sending it to a target object?s dispatchEvent() function.