Her

Home Flash & Swish Flash Tutorials Natural Button

Natural Button

Author: originalflash Author's URL: originalflash.com More by this author

1. Create a new document

2. Open panel Components > OF Components

3. Drag and drop one of the components NButton

4. Set the necessary parameters (Colors, Font, Size, etc.)

5. Copy the button and paste the required number of buttons

6. Set labels for buttons

7. Set instance name for each button (e.g. b1, b2,…)

8. On Timeline create layer - actions

9. On action layer insert 2 keyframes.

In the first keyframe you write:

_root.b1.onRollOver();
_root.b1.onPress();

In the second keyframe you write:

_root.b1.onRelease();
_root.b1.onRollOut();

Attach sound to the first keyframe.

10. Copy these keyframes and paste them on layer actions, omitting several frames.

Change "b1" with "b2" and so on

11. Use it.

Sample

P.S. Size of swf file of this example is only 14 kB, including sound and embedded font.