Bind Components To Display Product Information From An External Source - MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual

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

Advertisement

Drag four instances of the Label component onto the Stage. Name and position the instances
2.
as follows:
For the first instance, enter ccName_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 ccType_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 ccNumber_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 ccExp_lbl for the instance name and set the X and Y
coordinates to 5, 95. Click the Parameters tab and enter
Drag an instance of the TextInput component onto the Stage and position it to the right of the
3.
ccName_lbl instance. Name the new instance ccName_cb.
Drag an instance of the ComboBox component onto the Stage and position it to the right of
4.
the ccType_lbl instance. Name the new instance ccType_cb.
Drag another instance of the TextInput component onto the Stage and position it to the right
5.
of the ccNumber_lbl instance. Name the new instance ccNumber_cb.
Drag two instances of the ComboBox component onto the Stage. Position one to the right of
6.
the ccExp_lbl instance, and position the other one to the right of that. Name the first new
instance ccMonth_cb, and name the second ccYear_cb.
Drag an instance of the Button component onto the Stage and position it at the bottom of the
7.
form, below the ccMonth_cb instance. Name the new instance checkout_button. In the
Property inspector's Parameters tab, set the
Follow the instructions in steps 14-16 of the Billing Information instructions (see
8.
movie clips for the Billing Information pane" on page
the form.
Bind components to display product information from an
external source
In the beginning of the tutorial, you added instances of the DataGrid, DataSet, and
XMLConnector components to the Stage. You set the
(named products_xmlcon) to the location of an XML file containing product information for the
Gift Ideas section of the application.
Now you'll use data binding features in the Flash authoring environment to bind the
XMLConnector, DataSet, and DataGrid components together to use the XML data in the
application. For general information on working with data binding and other features of the Flash
data integration architecture, see Chapter 14, "Data Integration (Flash Professional Only)" in
Using Flash.
When you bind the components, the DataSet component will filter the list of products in the
XML file according to the severity of the blunder that the user selects in the What Did You Do?
section. The DataGrid component will display the list.

Bind components to display product information from an external source

Name On Card
Card Type
Card Number
Expiration
property to
label
Checkout
28) to add a rectangle to the bottom of
property for the XMLConnector
URL
for
.
text
for
.
text
for
.
text
for
.
text
.
"Create
31

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents