before | |||||||||||||
Type | control structure | ||||||||||||
Dictionary | LCS | ||||||||||||
Library | LiveCode Script | ||||||||||||
Syntax |
| ||||||||||||
Summary | Defines a message handler. | ||||||||||||
Introduced | 6.0 | ||||||||||||
OS | mac, windows, linux, ios, android | ||||||||||||
Platforms | desktop, server, mobile | ||||||||||||
Parameters |
| ||||||||||||
Example |
| ||||||||||||
Related | Keyword: end, private Command: dispatch Function: result, commandNames, paramCount Control Structure: after, on, exit Glossary: message handler | ||||||||||||
Description | The before handler is exclusive to behavior scripts and is sent to a behavior script before all messages. For example, consider a mouseDown message moving through the message path. It gets to an object with a behavior script:
A before handler allows developers to produce behavior scripts which can handle messages sent to a control without having any effect on the message path, unlike front and back scripts. |