(1) (2) (3) (4) (5) (6) (7) (8) (9) (10)
Now that the buttons were created I could begin
adding some interactivity to the project.
Adding a Hold and Play Behaviors
The first step is adding some 'behaviors' to the timeline. Behaviors are LiveMotions
method of adding interactivity to an animation. I want my Shockwave to 'stop'
on frame 1 and a 'play' on frame 2 . The viewer will control everything using
the two buttons.
Adding a 'stop' behavior is done by sliding the
'current time marker' to frame 1. Then click the 'behavior'
button near the top of the timeline.
 |
|
Use behaviors to add interactivity
|
In the Behaviors window select 'Stop' from the
drop down menu. Make sure 'Composition' is chosen in the 'target'
textfield and 'Label' the behavior - Hold.
 |
|
Creating a 'stop' behavior is easy
|
Go and Reverse Behaviors
The Go button will play the animation. Select the go button
and bring up the 'rollover' palette. Select the 'down' rollover
effect and then click the 'behavior' button on the lower left.
 |
|
Add a behavior to a button
|
When the 'Behavior' palette appears select 'Play'
from the drop down menu and make sure 'composition' is selected.
Click OK. A behavior icon appears next to the 'down' rollover
state.
 |
|
Select 'Play' and Target 'Go button (down)
|
The 'Reverse' button will return the animation
to frame 1. Select the 'down' rollover state for the 'Reverse'
button and click the 'behavior' icon. Choose 'Go to Label,'
make certain 'composition' is chosen for target, and select
'Hold' for Label since you will be going back to Frame 1.
An additional behavior must be added. Clicking
the reverse button will return the Shockwave file back to frame
1 but the audio track will continue playing. Select a 'Stop
All Sounds' behavior. This stops the audio file.
 |
|
Use 'Go to Label' setting and select 'Hold'
|
Your buttons are now programmed.
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10)