Configuring user events
Once you have created a building block and decided which user events to use, you must associate actions with those user events. An action is what happens when the end user triggers an object’s user events. You can think of an action as “what an object does when an end user interacts with it.”
To associate an action with an object’s user event:
- Select the object.
- Click the Event tab in the Interactive palette.
The Event tab of the Interactive palette enables you to assign actions to user events. You can also use actions in scripts.
- To specify a cursor to display when the user’s mouse is over the object, choose a cursor from the Cursor drop-down menu.
- Choose an event from the User Event drop-down menu (see “Choosing a user event“).
- To specify a sound to play when the user event occurs, choose an option from the Event Sound drop-down menu:
- If you choose External from the Sound drop-down menu, the External File Reference dialog box displays.
Use the External File Reference dialog box to specify the path to a file.
Use one of the following methods to specify a path:
- To reference a file from your local file system, choose File from the Type drop-down menu and then specify the path to that file in the Path field.
- To use a file on the Internet, choose URL from the Type drop-down menu and then enter the URL of the file in the URL field.
- To reference a file from your local file system using a path created by an expression, choose File Expression from the Type drop-down menu and then either enter the expression in the Expression field or click the button to use the Expression Editor dialog box.
- To reference a file on the Internet using a URL created by an expression, choose File Expression from the Type drop-down menu and then enter the expression in the Expression field or click the button to use the Expression Editor dialog box.
- To indicate what should happen when the user event occurs, choose an action from the Action drop-down menu. The area below the selected action changes to show any parameters associated with that action.
- Configure the parameters for the action.
Parent topic: Working with events