{"identifier":6658,"topic":"HyperTalk basics","name":"Handling messages","text":"As a scripter, you write message handlers to respond to messages. When an object receives a message, HyperCard searches the object\u2019s script for a handler with the same name (a handler starts with the word<code> on <\/code>followed by the name of a message). If HyperCard finds a match, it runs any HyperTalk statements in the handler until it hits an<code> end <\/code>statement. <br><br>\n\n For example, if you want a button to respond to a<code> mouseUp <\/code>message, you would add a<code> mouseUp <\/code>message handler to its script. <br>\n<br>\n <br><br>\n\n <code><pre>\n<\/pre><\/code> Click Related Topics for more information about opening a script window. <br>\n","related":{"11969":"Open a script window"},"examples":"","demo":"","debug":{"9":["As a scripter, you w"],"10":["\r\r\r\r\r\r\r\rClick Relate"]}}