decorative banner

Attaching behaviors and other scripts to rollovers


    You can attach scripts to the different states of a rollover. (These scripts can include the behaviors available in LiveMotion 1.0.) The scripts are played when that state is activated. For instance, you can attach a script to load and play a movie when one button is clicked, and another behavior to stop the movie when another button is clicked.

    For information on behaviors, see Specifying a filename, alternate text, and a target for a sliced image in AutoLayout format and the Adobe LiveMotion 2.0 Scripting Guide. For information on scripts, see About scripts and the Adobe LiveMotion 2.0 Scripting Guide.

To attach a script to a rollover's state:

  1. Select the object in the Composition window.
  2. Select the state in the States palette.
  3. Click the Edit State Script button the Script button in the States palette.
  4. Use the Script Editor to create the script you want, as described in the Adobe LiveMotion 2.0 Scripting Guide.