ON RELEASE keyword

Executes a SUB on a release event. The event is generated when the mouse button is released or the touch ends. Similar to ON CLICK, except that it will be triggered everytime when the mouse button (or touch) is released, even outside of the object.

Syntax

ON RELEASE object, sub, limit

Parameters

  • object: object (required)
  • sub: subroutine to execute (required)
  • limit: maximum number of executions, by default unlimited

Example

ON RELEASE myImage, myFunction
ON RELEASE myImage, myFunction, 5

Go back to list of Keywords.