Messages for events were first sent to the script in the object that created the event, for instance, if the user clicked on a button the codice_37 message was first sent to that button. If the button's script object did not have a codice_37 handler (or no script at all), it was then passed to the card, the background, the stack, any stacks whose scripts had been explicitly imported using the codice_9 command, the "home stack" (a user-selected always-open HyperCard stack), and finally to the HyperCard application itself.