MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Use Manual page 134

Table of Contents

Advertisement

Passing data to a Flex data model
You can create bindings to pass data to data models. For example, you can create a binding to pass
user input to a data model.
To create a binding to pass data to a data model:
Make sure your MXML file contains a component, data model, or data service that can supply
1.
data to the data model.
For example, your file can have a TextInput component that lets users enter employee
information.
In the Data panel, select the data model.
2.
In the Bindings panel (Window > Bindings), click the Plus (+) button.
3.
The Add Binding - Step 1 dialog box appears.
Make sure the first option ("Data Will Flow To") is selected and then select the property of the
4.
data model to receive the data.
For example, if you want to pass an employee name to the data model, select the appropriate
name property of the data model.
Click Next.
5.
The Add Binding - Step 2 dialog box appears.
134
Chapter 6: Working with Data

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex builder

Table of Contents