25 July 2010
Behaviors in Adobe Flash Professional are predefined scripts that you can attach to objects in your FLA file. Behaviors provide functionality such as frame navigation, loading external SWF and JPEG files, controlling the stacking order of movie clips, and movie clip dragging. Behaviors also enable you to add features to a Flash project without writing ActionScript; dissecting behavior code can help you learn how ActionScript works.
Behaviors are available only for ActionScript 2 and earlier. They are only available when you work in the Actions panel, not in an external script file. Typically, you select a triggering object in your document (such as a movie clip or button), select Add in the Behaviors panel, and then select a behavior, as shown:

The behavior is added to the object and is displayed in the Actions panel. Here is the ActionScript code of an applied behavior:
// load graphic behavior
this.loadMovie("background.jpg");
// end behavior
To learn more about working with behaviors, see the section titled Behaviors conventions in the Flash documentation.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License