• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Drawing Timelines > Adding a Behavior to a Timeline

Adding a Behavior to a Timeline

All the clever behaviors I discussed in Chapter 16 can be added to a timeline. For instance, you can make the timeline execute an animation and then load a new page; you can play a sound at a certain frame in a timeline; or you can use a timeline to start playing a Shockwave movie at a certain frame.

To add a behavior to a timeline frame:

1.
In the Timelines panel, click on the frame that will launch the behavior to move the playback head to it.

2.
Double-click on the frame number within the Behaviors channel (Figure 17.59). The Behaviors panel will appear. The browser version (4.0 and later browsers) will be preset.

Figure 17.59. I double-clicked on the intersection of the Behaviors channel and frame 20, and the Behaviors panel appeared. It's empty until you add an action.


3.
In the Actions area of the Behaviors panel, click on the Add Action button to pop up the menu of available actions (Figure 17.60).

Figure 17.60. On the Behaviors panel, click on the Add Action button, and choose an action from the pop-up menu.


4.
Choose the action you want to add. The associated dialog box will appear.

5.
Fill out the dialog box and click on OK. The name of the action will appear in the Actions list box (Figure 17.61). The event, onFrameNumber, will be added to the Behaviors panel automatically.

Figure 17.61. I added the Open Browser Window action to frame 20 of the timeline; when the timeline is played, the window will launch on frame 20. The event will be added automatically after you finish selecting the action.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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