[the] buttonMessage of <button>

set the buttonMessage of button "OK" to "okButtonClicked"


The buttonMessage property allows you to specify the name of a command message to be sent to this button (and then up the message hierarchy to the card, stack and project) when the button is clicked. This is sent in addition to the mouseUp message, and is especially useful when you want to handle clicks in certain buttons at a higher level (e.g. funnel clicks in all game tiles to the card).

See Also