124 Tutorial: Building Your First Flash Application
Add a button component
Now you are ready to add the button that allows the user to switch from
one slide to the next in the slide show.
To add the Next button:
1.
In the Timeline, click the nextButton layer name to make that
layer active.
This is the layer that holds the button component you are about
to add.
2.
Open the Components panel if it is not already open by selecting
Window > Components.
3.
In the Components panel, open the User Interface category by clicking
the plus sign (+) next to the User Interface category name.
4.
Drag the Button component from the Components panel to the lower
part of the blue rectangle on the Stage.
The button stays selected on the Stage unless you click elsewhere.
5.
With the button still selected, go to the Property inspector panel and
enter the following values:
InstanceName: next_btn
X: 590
Y: 120
6.
In the Property inspector panel, click the Parameters tab.
7.
In the Label text box, replace the name Button with the name Next and
press Enter (Windows) or Return (Macintosh).
The label on the button changes to Next.
8.
Save your document.