Creating a Button in Flash 5+

1. First use the square tool at the right, under "Tools", it's the square image.

2. Draw a medium sized square on the screen.

3. Next we need to make it a button. Select it and either press F8 or go up to "Insert" and select "convert to Symbol".

4. Select "button" radio button and hit okay. Now you have a button to use.

5. Now on the screen, if using a PC right click it and hit edit in a new window, if using a MAC, hit edit, and then hit edit in a new window.

6. Now you should see a screen in which in the timeline there should only be 4 frames. The Up, Down, Over and Hit frames.

7. The Up frame is displayed when the user doesn't have the mouse over the button.

  1. The Over button is displayed when the user puts his/her mouse over the button.
  2. The Down button is displayed if the button has been depressed, or hit.
  3. The hit button is not usually used but if you want the button to look different if the user has already hit that specific button before.

8. Now place a keyframe in the Over and Down button frames. Select the Over button in the timeline and change the color of the paint bucket in the tools on the left of the screen.

9. Now go back to Scene 1 and hit either ctrl +enter to view the movie or hit Control + Play Movie. This will play the movie so that you can test it before continuing.

10. Now for the actionscripting. In Scene 1 select the button and if using Flash 5 hit actions, or if using Flash MX just open the Actions - Frame window.

11. Now enter this data into the window if you are linking the button to an internet url.

{ on(release)
geturl("http://flash.ravedp50.com")
}

12. If you want the button to link to another point in the movie, use this:

{ on(release)
gotoandplay(put your frame number here)
}

Created by dpurcell @ www.ravedp50.com

Hosted by www.Geocities.ws

1