flash 8 video tutorial on buttons
This tutorial shows you how to create a very simple button.
Here is a quick rundown.
Make a rectangle and select it using selection tool . (arrow)
Hit key f8 to Convert to Symbol - tick type button, name it eg. home_btn.
Double click button to get to button editing window.
click on frame 2 (over ) and hit key F6 to make another keyframe.
Do the same for frames 3 and 4 (down and hit).
Be aware that frame 4 is the hitarea for the button.
Lock that background layer and create a new layer above and call it text.
Put the text that you want on that layer. e.g. Home.
Hit Scene 1 Button above timeline to return to main timeline.
Click on button, and give it an instance name in the properties window.
lock the buttons layer and create a new layer called “actions”.
Click on frame 1 of the actions layer and hit key F9 to open Actions window.
Type some code like this..
stop();
// home button, goes to frame 1
home_btn.onRelease = function(){
gotoAndStop(1);
}
