How to Create a Button in Flash CS3

The Adobe Creative Suites 3 (CS3) software package includes the Adobe Flash application that allows you to create created animated videos and games. If you are making a interactive game with the Flash application you can create a button for people to click on, such as a button that says, "Start," on the main menu of the game. You can open a new Flash file application and add a button component from the Components panel.

Instructions

    • 1

      Open the Adobe Flash CS3 application on your computer. Click on the "File" option from the top toolbar menu and then click on the "New" option.

    • 2

      Select the "Flash File (ActionScipt 2.0)" option. Select one of the buttons from the "Components" panel and drag the button component to the Stage area of the application.

    • 3

      Double-click on button you've added to bring up the "Property Inspector" dialog box. Enter "my_button" for the instance name and enter "Click me" for the label parameter.

    • 4

      Enter "BtnIcon" for the icon parameter and then click on the "True" option for the "Toggle" field.

    • 5

      Click on the "Frame 1" option from the Timeline section and then the "Actions" panel will open.

    • 6

      Enter the following code into the blank textbox: "function clicked( ){
      trace("You clicked the button!");
      }
      my_button.addEventListener("click", clicked);"

    • 7

      Click on the "Control" option from the top toolbar menu and then click on the "Test Movie" option. You can click on the button and the text, "You clicked the button!" will appear.

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured