Event management procedures
Object scripts provide default procedures for handling mouse events. These procedures are executed when the event is generated directly on the object or, in the case of groups, when the event is inherited from one of the constituent elements (see the paragraph "Management of events and their sequence").
The predefined procedures for managing events are available in the Procedures list. By selecting a procedure from the list, the declaration is automatically inserted into the code:

If the declaration of an event management procedure is present, even if empty, the management of the event passes to this procedure. This affects the handling of events in case of groups of objects (the event is managed by the object and not by the group). It is therefore generally advisable to remove declarations of unhandled event procedures.
OnMouseEnter
Defines the management of the event generated when the mouse pointer enters the area pertaining to the object.
OnMouseLeave
Defines the management of the event generated when the mouse pointer leaves the area pertaining to the object.
OnMouseDown
Defines the management of the event generated at the time of pressing (and before the release) of the mouse button corresponding to the object.
OnMouseUp
The mouse button corresponding to the object.
OnClick
Defines the management of the click event, generated when the mouse button is pressed and released on the object
OnDblClick
Defines the management of the double click event, generated when the mouse button is pressed and released twice on the object.
WhileMouseDown
Defines the management of a cyclic event generated at regular intervals as long as the mouse button is pressed in correspondence with the object.
The period of this event is defined by the Period property of the animation script. If Period is set to 0, the event is not generated.
The execution period can also be altered within the script with the statement Period = <period>, which receives sets the repetition period expressed in milliseconds.