Adding controls to screens using behaviors (Flash Professional only)

To add a control to a screen using a behavior, you attach the behavior to a trigger—a button, movie clip, or screen—and target the screen that you want to be affected by the behavior. You can select the event that triggers the behavior.

You can add the following behaviors to control slide screens: Go to First Slide, Go to Last Slide, Go to Next Slide, Go to Previous Slide, and Go to Slide (specify slide name).

Note: Go to Next Slide and Go to Previous Slide navigate to screens on the same level, not to parents or children. For an explanation of parents and children, see Document structure and hierarchy (Flash Professional only).

You can add the following behaviors to control slide or form screens: Show a Specified Screen (if the screen has previously been hidden), Hide a Specified Screen (if the screen has previously been shown).

To add a control behavior:

  1. Select the button, movie clip, or screen that will trigger the behavior.
  2. In the Behaviors panel, click the Add (+) button.
  3. Select Screen, and select the desired control behavior from the submenu.
  4. If the behavior requires that you select a target screen, the Select Screen dialog box appears. Select the target screen in the tree control. Click Relative to use a relative target path, or Absolute to use an absolute target path, and click OK. (For information on target paths, see Using absolute and relative target paths.)

    Note: Some behaviors select a target screen by default; for example, the Go to First Slide screen automatically targets the first screen. Such behaviors do not display the Select Screen dialog box.

  5. In the Event column, click in the row for the new behavior and select an event from the list. This specifies what event will trigger the behavior—for example, a user clicking a button, a movie clip loading, or a screen receiving focus. The list of available events depends on the type of object you are using to trigger the behavior.