Specifications

97
7
CHAPTER 7
Basic Tasks: Create an
Application
The application that you’ll create in this lesson lets users view the cost of
selecting multiple products. A Calculate button then adds the total cost.
You can print this tutorial by downloading a PDF version of it from the
Macromedia Flash Documentation page at www.macromedia.com/go/
fl_documentation.
In this tutorial, you will complete the following tasks:
Copy input and dynamic text fields . . . . . . . . . . . . . . . . . . . . . . . . . .99
Name text fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99
Add and name a Button component . . . . . . . . . . . . . . . . . . . . . . . . 100
Declare variables and values for the prices . . . . . . . . . . . . . . . . . . .101
Specify values for input text fields . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Write a function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Write an event handler for the component. . . . . . . . . . . . . . . . . . . 104