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

Chapter 7. Basic Tasks: Create an Application > Add and name a Button component

Add and name a Button component

Components are movie clips that offer an easy way of adding advanced functionality to your document without having to know advanced ActionScript. You’ll use the Button component to create a Calculate button that totals prices. Because the component you’re using is based onv ActionScript 2.0, you first need to configure your Publish Settings dialog box to ensure your Flash content plays as expected.

1.
Select File > Publish Settings.

2.
On the Flash tab of the Publish Settings dialog box, select ActionScript 2.0 in the ActionScript Version pop-up menu, if it’s not already selected.

3.
In the Timeline, click the Components layer to select it.

4.
From the Components panel (Window > Components), drag the Button component to the Stage and place it over the Calculate guide.

5.
On the Parameters tab of the Property inspector, with the Button component selected, click the Button text on the Label row, and type Calculate. Then press Enter or Return.

The text that you type in the Label text box is the text that appears on the component.

6.
In the Instance Name text box, enter calculate to provide the button with an instance name.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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