Mouse Events
Top  Previous  Next


Event Handling procedures exist for Sprites / Objects (onSelfEvent()) and for Button Objects (on()). The exact Event being handled is defined by the Event name supplied to the onSelfEvent() or on() functions.

In Windows-based computers that support left and right mouse buttons, only the left mouse button is monitored (the right mouse button is not available on Mac computers).

Event
Description
dragOut
Mouse button is pressed then mouse is moved away from the Object / Sprite / button
dragOver
Mouse button is pressed over the Object / Sprite / button. The mouse is then moved away and back while the button is pressed
keyPress(key)
The specified key has been pressed
press
Mouse button has been pressed over the Object / Sprite / button
release
Mouse button has been released over the Object / Sprite / button
releaseOutside
Mouse button has been released outside the Object / Sprite / button
rollOut
Mouse is moved away from the Object / Sprite / button
rollOver
Mouse is moved over the Object / Sprite / button