MACROMEDIA FLASH MX 2004-USING ACTIONSCRIPT IN FLASH Bedienungsanleitung Seite 13

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 21
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 12
13
Project 5 – Button
A button controls the starting of the movie
New Key Concept: Button Symbol
1. Adding a button symbol
Note: This project uses the Initials file, so open this first.
You are going to add a button which will play the movie again when clicked. First
you must add a new layer at the top (drag it into the correct position if
necessary) and call it ‘button’. The button is going to pop up at frame 40, so
insert a keyframe at frame 40.
Now create a button shape with the rectangle tool. You can give it
rounded corners, if you wish and use the stroke size from the
properties panel to alter the border. Drag out the rectangle and
position it on the stage.
Note: If a shape has a border (stroke), draw a box round the whole shape to
select it before moving, or it will leave its border behind!
Select the button
shape and convert it
to a symbol (Insert
menu), this time
choosing the Button
symbol option.
2. Assigning actions to the button
Select the button, making sure that the thin blue
frame is showing, then click on the Actions panel
title bar for that symbol (above the properties
panel).
On the right of the Actions panel, check that you are in
Normal Mode.
You are going to set the actions so that on mouse
release, the movie will go and play frame 1 again.
Click to open Actions, then Movie Control, then
double click the word ‘on’:
You do not need to change anything here.
Seitenansicht 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 19 20 21

Kommentare zu diesen Handbüchern

Keine Kommentare