MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 29

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

In the Create New Symbol dialog box, enter checkout1_sub_mc for Name and select Movie
8.
Clip for Behavior.
Click the Advanced button. Under Linkage, select Export for ActionScript, leave Export in First
9.
Frame selected, and click OK.
A document window for the new symbol opens in symbol-editing mode.
Drag six instances of the Label component onto the Stage. Alternatively, you can drag one
10.
instance onto the Stage, and Control-drag (Windows) or Option-drag (Macintosh) it on the
Stage to make copies. Name and position the instances as follows:
For the first instance, enter firstname_lbl for the instance name and set the X and Y
coordinates to 5, 5. Click the Parameters tab and enter
For the second instance, enter lastname_lbl for the instance name and set the X and Y
coordinates to 5, 35. Click the Parameters tab and enter
For the third instance, enter country_lbl for the instance name and set the X and Y
coordinates to 5, 65. Click the Parameters tab and enter
For the fourth instance, enter province_lbl for the instance name and set the X and Y
coordinates to 5, 95. Click the Parameters tab and enter
For the fifth instance, enter city_lbl for the instance name and set the X and Y coordinates
to 5, 125. Click the Parameters tab and enter
For the sixth instance, enter postal_lbl for the instance name and set the X and Y
coordinates to 5, 155. Click the Parameters tab and enter
Drag six instances of the TextInput component onto the Stage. Place a TextInput instance
11.
immediately to the right of each Label instance. For example, the X, Y coordinates of the first
TextInput instance should be 105, 5. Name the TextInput instances as follows:
Name the first instance billingFirstName_ti.
Name the second instance billingLastName_ti.
Name the third instance billingCountry_ti.
Name the fourth instance billingProvince_ti.
Name the fifth instance billingCity_ti.
Name the sixth instance billingPostal_ti.
Sometimes content in a scroll pane can be cropped if it's too close to the border of the pane. In
the next few steps you'll add a white rectangle to the checkout1_sub_mc movie clip so that the
Label and TextInput instances are displayed properly.
In the Timeline, click the Add New Layer button. Drag the new layer below the existing layer.
12.
(The layer with the rectangle should be on the bottom, so that the rectangle doesn't interfere
with the component display.)
Select Frame 1 of the new layer.
13.
First Name
Last Name
for
Country
Province/State
for
.
City
text
Postal/Zip Code
Build the application architecture
for
.
text
for
.
text
.
text
for
.
text
for
.
text
29

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents