A behavior in Macromedia Director MX 2004 is prewritten Lingo or JavaScript syntax 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 mouse click on a sprite or the entry of the playhead 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 and share your own behaviors by writing Lingo or JavaScript syntax. To modify behaviors, you use the Behavior inspector or Property inspector.
For more information about using included behaviors, see Using Director Behaviors on the Director Support Center at www.macromedia.com/go/director_behaviors_en.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/director/mx2004/release_update_en/14_behav.htm
Comments
No screen name said on Aug 29, 2005 at 7:26 AM :