Using Director > Behaviors > Behaviors overview |  |

Behaviors overview

A behavior is prewritten Lingo script that you use to provide interactivity and add interesting effects to your movie. You drag a behavior from the Library palette and drop it on a sprite or frame to attach it.

If the behavior includes parameters, a dialog box appears that lets you define those parameters. For example, most navigation behaviors let you specify a frame to jump to. You can attach the same behavior to as many sprites or frames as necessary and use different parameters for each instance of the behavior.

Most behaviors respond to simple events such as a click on a sprite or the entry of the playback head into a frame. When the event occurs, the behavior performs an action, such as jumping to a different frame or playing a sound.

Director comes packaged with customizable, reusable behaviors for many basic functions; you and other developers can also create your own behaviors by writing Lingo script. To modify behaviors, you use the Behavior Inspector or Property Inspector.

For more information about using included behaviors, see Using Director 8 behaviors in the Director Support Center.