Events
on
Syntax
- on(event)
Event typesUsage
- press : Mouse button pressed inside the target area.
- release : Mouse button released inside the target area.
- rollOut : Mouse moves to outside of the target area.
- rollOver : Mouse moves to inside the target area.
- dragOut : Mouse button pressed inside the target area; mouse moves to outside of the target area.
- dragOver : Mouse button pressed; mouse moves to outside of the target area; mouse moves to back inside the target area.
- releaseOutside : Mouse button pressed; mouse moves to outside of the target area; mouse button released outside of the target area. Always preceded by press and dragOut events.
- keyPress("key") : The specified keyboard key is pressed.
- For handling mouse and keyboard events.