• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

8. Buttons and Interactivity > 8.1. Buttons As Symbols

Buttons As Symbols

In earlier chapters we learned about graphic symbols and movie clip symbols. Let’s see how to create the third type of symbol, a button symbol, and add ActionScript to make it launch a web page.

Simple Buttons

Soon, we’ll see how to create complicated buttons (and even an invisible button), but let’s start with a basic button symbol.

To create a button with the word Button on it:

  1. Create a new Flash document, set the Stage dimensions to 200 x 25, and save the file as simple_ button.fla in the 08 folder.

  2. Draw a rectangle (choose any color you like), resize it to 200 x 25, then position its upper-left corner at (0, 0) so it covers the Stage.

  3. Use the Text tool to enter the word Button and position it at the vertical and horizontal center of the Stage. The word appears in front of the rectangle.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint