Now the third ingredient is the action itself. It should mute the audio and change the state of the button. Use the following steps to create this standard Advanced Action:
- Still in the Chapter13/takeTheTrain.cptx file, use the Project | Advanced Actions menu item to open the Advanced Actions dialog.
- In the top left corner of the dialog, type muteAudio in the Action Name field.
Note that the name of the action must comply with the same strict rules as the name of the variables (no spaces, no special characters, no reserved names).
- In the Actions area of the dialog, double-click the first line of the table.
This adds a first step to the Advanced Action. In the first column, a yellow warning sign indicates that ...