Flash Tutorial: Creating Buttons
|
|
|
|
|
Click by Click: Creating Buttons
Full Version: This is a shortened click by click version of a: Full Length Tutorial
Free
Flash Tutorial

The aim of the tutorial is to be able to create your own buttons. These buttons will change appearance when you roll over them. The button will change again when clicked. This is referred to as different button States. This
tutorial is designed for people who have little Experience of using Flash.
Step One: Setting up the Document
- Open a New Flash Document: File > New (Ctrl N)
- If the General Tab is not selected, select it:

- Select Flash Document:

- Click: OK
- Go to: Modify > Document (Ctrl J)
- Set the size. Mine is: 200 x 130px
- If you wish select a: Background colour
- Click: OK
Step Two: Creating the Button Symbol
- Go to Insert > New Symbols (Ctrl F8)
- Name it: Button 1
- For Behavior select: Button
- Click: OK
Step Three: Creating the Up State
- In the middle of the Stage draw a rectangle with the rectangle tool:

- When you have finished drawing your rectangle, return to the Selection tool:

- Select the rectangle by double clicking it: Select Rectangle
- Select any Fill colour you may want with
the Fill Color tool:

- Select any Stroke colour you may want with
the Stroke Color tool:

- Go to: Window > Align (Ctrl K)
- In the Align panel if the 'To Stage' option is off, turn it on:

- With the rectangle selected click on the Align Vertical centre
button:

- Click on the Align Horizontal centre button:

- Select the Text tool:

- Click next to your rectangle and type: Click
Here (or whatever you might want your button to say)
- When you have finished typing return to the Selection Tool:

- If the Property Inspector is closed, open it: Window > Properties > Properties (Ctrl F3)
- Look in the Property Inspector to make sure the text is set to: Static Text
- Change the Fonts Colour, Style Face etc to suite: Font Style
- If the Align panel is closed, open it: Window > Align (Ctrl K)
- Click on the Align Vertical centre button:

- Click on the Align Horizontal centre button:

- To re-size the rectangle double click on it with the: Selection Tool
- Then either use the:
- Either the: Free Transform Tool

- Or use the: Property Inspector and type in the size you want.
Step Four: The Over State
- In the Timeline right click (Mac - Ctrl click) in the: Over Frame
- From the Menu select: Insert Keyframe
- De-select both the rectangle and text by clicking on a blank area of the Stage: Deselect Button
- Select the: Text
- Change the text to bold: Text > Style
> Bold (Ctrl Shift B)
- If the Property Inspector is closed, open it: Window > Properties > Properties (Ctrl F3)
- If the Text is too big go to the Property Inspector and: Reduce the Size
- In the Property Inspector change the Fonts colour. I selected: Black
- So that you can get to the rectangle below: Drag the Text Aside
- Click to select the: Rectangle Fill
- In the Property Inspector change the Fill color:

- If the Align panel is closed, open it: Window > Align (Ctrl K)
- Select the: Text
- Click on the Align Vertical centre button:

- Click on the Align Horizontal centre button:

Step Five: The Down State
- In the Timeline right click in the: Down Frame
- From the Menu select: Insert Keyframe
- De-select both the Rectangle and Text by clicking on the Stage:
- Select the: Text
- In the Property Inspector change the Text's: Colour
- Select the: Rectangle Fill
- In the Property Inspector change the Fill color:

Step Six: Placing the Button on the Main Stage:
- Click on the Scene 1 Tab:

- Click on Window > Library (F11)
- Drag your symbol from the Library onto the: Main Stage
Making the Button Work: Actions
For a button to do something useful you have to give it instructions. You do this through the use of ActionScript. If you need to know how to do this see the previous tutorial:
Creating Links within a Flash Movie
The Hit Area
The Hit Area is an invisible the area of a Flash button that responds when the mouse pointer passes over it or clicks on it. This can be a rectangular area surrounding the button, or an irregular shape. See Definition: Hit Area
Have fun with your buttons, make them wild and wonderful!
Full Version of this: Tutorial
|
|
All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.
|