Button actions are placed on the instance of a button on the stage, and not on the Timeline. Combining buttons with actions lets you create interactivity. These actions dictate where an end user is directed once a button is activated. You can determine this by using the On Mouse Event action. You can create one button and use different instances of the button with their own set of actions on them. The On Event HandlerThe on event handler lets you attach actions to mouse events. It is used in addition to other actions, such as the goto , getURL , and stop actions. Whenever you choose a complimentary action, Flash detects that you are adding this functionality to a button and automatically attaches the on action before it. The on event handler has many mouse events associated with it. For a list of these and a summary of each one, see Table 7.2. Table 7.2. Mouse Events
You can add multiple actions to a mouse event. These and other actions are covered in further detail in Chapter 9, "Introduction to ActionScript."
|