Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » HyperTalk basics

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

Handling messages

As a scripter, you write message handlers to respond to messages. When an object receives a message, HyperCard searches the object’s script for a handler with the same name (a handler starts with the word on followed by the name of a message). If HyperCard finds a match, it runs any HyperTalk statements in the handler until it hits an end statement.

For example, if you want a button to respond to a mouseUp message, you would add a mouseUp message handler to its script.



Click Related Topics for more information about opening a script window.


Related Topics

« What are messages? | HyperTalk Reference | The message-passing order »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View