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'll learn how to accomplish the
following tasks as you create the application:
•
Copy input and dynamic text fields
•
Assign instance names to text fields
•
Add a Button component
•
Declare variables and values
•
Specify values for text fields
•
Write a function
•
Write an event handler for the component
Set up your workspace
First, you'll open the start file for the lesson and set up your workspace to use an optimal layout
for taking lessons.
To open your start file, in Flash select File > Open and navigate to the file:
1.
On Windows 2000 or XP, browse to boot drive\Documents and Settings\All Users\
Application Data\Macromedia\Flash MX 2004\language\Configuration\HelpPanel\
HowDoI\QuickTasks\start_files and double-click calculator_start.fla.
Note: If the Application Data folder is hidden, you'll need to change your Windows Explorer
settings to see the folder.
On Windows 98, browse to boot drive\Windows\Application Data\Macromedia\Flash MX
2004\language\Configuration\HelpPanel\HowDoI\QuickTasks\start_files and double-click
calculator_start.fla.
On Macintosh, browse to Macintosh HD/Users/Shared/Application Support/Macromedia/
Flash MX 2004/language/Configuration/HelpPanel/HowDoI/QuickTasks/start_files and
double-click calculator_start.fla.
Note: The QuickTasks\finished_files folder contains completed versions of lesson FLA files, for
your reference.
CHAPTER 4
Create an Application
35
Need help?
Do you have a question about the FLASH MX 2004-LEARNING FLASH and is the answer not in the manual?
Questions and answers