Chapter 18
442
Attaching a behavior to a timeline
To trigger a behavior at a certain frame in a timeline (rather than having a visitor’s
interaction trigger it), place the behavior in the timeline. (For information on
creating a timeline, see “Animating your layers” on page 425.) For example, you
can start a sound playing at frame 15 of a timeline.
Only one kind of event can trigger an action in a timeline: the animation reaching
a certain frame number (an
onFrame7
event, for example).
The behavior can affect any object on the page, not just objects in the timeline.
Preview the timeline in a browser to see the behavior working. You cannot preview
behaviors inside Dreamweaver.
To place a behavior in a timeline:
1
Click in a frame in the Behaviors channel in the Timelines panel.
2
Use the Behaviors panel to choose an action to perform at that frame.
The action appears in the Behaviors panel, with an event indicating the frame
number at which the action is triggered. A minus sign (–) appears in the
Behaviors channel of the timeline frame.
Changing a behavior
After attaching a behavior, you can change the event that triggers the action, add
or remove actions, and change parameters for actions.
To change a behavior:
1
Select an object with a behavior attached.
2
Choose Window > Behaviors to open the Behaviors panel.
Behaviors appear in the panel alphabetically by event. If there are
several actions for the same event, the actions appear in the order in which
they will execute.
3
Choose from the following options:
•
To edit an action’s parameters, double-click the behavior name, or select it and
press Enter (Windows) or Return (Macintosh); then change parameters in the
dialog box and click OK.
•
To change the order of actions for a given event, select an action and click the
up or down arrow button.
•
To delete a behavior, select it and click the Minus (–) button or press Delete.
Summary of Contents for 38028779 - Macromedia Dreamweaver - Mac
Page 1: ...macromedia Using Dreamweaver...
Page 148: ...Chapter 4 148...
Page 296: ...Chapter 12 296...
Page 472: ...Chapter 18 472...
Page 512: ...Chapter 21 512...
Page 562: ...Appendix 562...