[10.8] Can I send events to a specific object onstage?

Events can be sent as messages to any script using the syntax:

  message(script scriptName, any, required, parameters...)

For example, if you had a button called "help button" with a mouseUp handler in its cast script, you could cause its handler to be called by using:

  mouseUp(script "help button")

(Note that you can also use cast numbers instead of names to specify the script, but in most cases it's safer to use names.)

While this is not strictly the same thing as sending an event to an object onstage (for instance, a button won't hilite on receiving this message), it nevertheless allows for most of the things you would want to do this way, since the actions of objects interacted with will usually be controlled by scripts.