How Do I...
For AlarmClockView to run the script messageDelay
when a user presses Set Alarm, you need to make an event-to-script connection. You'll connect the
clicked event of Set Alarm to the script
messageDelay.
Drawing a connection
To connect them in a Composition Editor:
- Using mouse button 2, click on the Set Alarm push
button. (For UNIX, use mouse button 3.)
- Select Connect > clicked from the
pop-up menu.
- Click the
now shown on the free-form surface.
- From the displayed pop-up menu, select Event to Script.
A Connections window opens, showing AlarmClockView in the
Script Connection field and messageDelay in the bottom
pane.
- In this window, select messageDelay and then
OK.

Deleting the unneeded connection
Because the event-to-script connection opens a message box once the
specified time occurs, you no longer need the event-to-action connection between Set Alarm and
the Message Prompter part.
To delete the connection:
- Click on the connection using mouse button 2. (For UNIX, use mouse
button 3.)
- Select Delete from the connection's pop-up menu or use the
Delete key.
After you finish work on the connections, the Composition Editor
displays:

[ Top of Page | Previous Page | Next Page | Table of Contents ]