• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using Behaviors

Behaviors are prepackaged ActionScript code that are categorized so you can easily apply them to your movie without having to write the code yourself. Users of previous versions of Flash will find some similarities between the Behaviors panel and the no-longer-used Normal mode feature of the Actions pane. Both let you create and modify ActionScript through a simple, accessible menu-driven approach. You can use the Behaviors panel to assign common interactivity (including navigation, sound and movie clip control, and loading of external media) to movie clips, buttons, and frames.

Add a behavior by first selecting an instance on the Stage or a keyframe on the Timeline. Then, select a behavior from the plus button pull-down menu. The behaviors are organized in six sections (Figure 12.23), with the contents of each section changing depending on whether a keyframe or an instance is selected. For example, if you select a keyframe and then look in the Movieclip category, you will see a set of actions that are relevant only to controlling Timelines.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint