SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1057 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


Triggering Behaviors in Timelines
Adding a behavior to a timeline is similar to adding a behavior to any object on a Web page. Because timelines
are written in JavaScript, they behave exactly the same as any object enhanced with JavaScript.
Use the Behaviors channel section of the Timelines panel to work with behaviors in timelines. You can
attach a behavior to a timeline in four ways:
n Select the frame in which you want to have the behavior, then right-click (Control+click) and
select Add Behavior from the context menu.
n Select the frame in which you want to activate the behavior and choose Modify ??? Timeline ???
Add Behavior to Timeline.
n Open the Behaviors panel and click the frame you want to modify in the Behaviors channel.
n Double-click the frame for which you want to add a behavior in the Behaviors channel.
When you attach a behavior to a frame, you can see in the Behaviors panel that the event inserted in the
Events column is related to a frame number??”for example, onFrame20. Each frame can trigger multiple
actions.
For more specifics about Dreamweaver behaviors, see Chapter 12.
Behaviors are essential to timelines. Without behaviors, you cannot play or stop your timeline-based
animations. Even when you select the Autoplay or Loop options in the Timelines panel, you are enabling a
behavior.


Pages:
1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069