Specify Values For Input Text Fields - MACROMEDIA FLASH 8-FLASH Tutorials Manual

Hide thumbs Also See for FLASH 8-FLASH:
Table of Contents

Advertisement

102 Basic Tasks: Create an Application
Specify values for input text
fields
You must specify values for the input text fields. You'll use the values when
you write ActionScript that multiplies the quantity and cost values.
1.
In the Script pane, with the insertion point after the text that reads
, press Enter (Windows) or Return (Macintosh) twice and type the
125;
following:
//Set initial values for the quantity text fields.
2.
Press Enter or Return, and type the following:
qty1_txt.text = 0;
is the instance name that you gave the first input text field
qty1_txt
under the QTY column. The
in the text field, which you specify is
3.
Press Enter or Return, and type the following two lines to set values of
0 for the other two QTY fields:
qty2_txt.text = 0;
qty3_txt.text = 0;
When you finish, the ActionScript should appear as follows:
//Set initial values for the quantity text fields.
qty1_txt.text = 0;
qty2_txt.text = 0;
qty3_txt.text = 0;
property defines the initial value
.text
.
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents