
14
Now double click the word ‘goto’:
Again there is nothing to change, as you
can see from the actionscript. If you change
to Expert Mode, you can see the code:
Now the actions are set.
3. Adding a stop action
If you test the movie, you will see that it is still looping. You need to add a ‘stop’
action to stop the movie at frame 40. These can be added on any keyframe, but it
is good practice to put them on a separate layer, so that they are easy to find and
change.
Add a new layer, name it ‘actions’ and insert a keyframe
at frame 40. Go to the Actions panel, change back to
Normal Mode and go to Actions > Movie Control. Double
click on ‘stop’.
Now test the movie.
Finally add some text to the
button to tell the user to click. (It
is always better to add text after
the button has been created).
Note: You can add the text as a
separate layer to the button symbol itself (double click the button first).
4. Extension
Can you add ‘stop’ and ‘go’ buttons to the movie and then use the Movie Control
actions to make one button stop the movie when it is clicked and the other button
start the movie again?
Remember: Each button should be on a new layer
Double clicking on a button symbol allows you to change how it looks when the
mouse hovers over it. Can you alter the buttons so that they glow a different
colour when the mouse moves over them? Or can you add a motion clip so that
the button animates?
Hint: Insert a keyframe in the ‘over’ state
Explore the button library – go to Window menu > Common
Libraries > Buttons. These buttons have actions already assigned,
rather like the Action Buttons in PowerPoint.
By setting the button alpha (transparency) properties to 0, you can make any
area of your movie act as a button. Go back to the Face project – can you add a
transparent button (and a stop action) so that the movie will not start until the
face has been clicked?
Kommentare zu diesen Handbüchern