138
Chapter 6: Working with Data
To create a binding that retrieves data from a data service:
1.
Make sure your MXML file contains a component or data model that can accept the data from
the data service.
For example, your file can have a Label component that will display a temperature received
from the data service.
2.
In the Data panel, select the data service.
To add a data service to the panel, see
“Inserting a Flex data service in the MXML file”
on page 136
.
3.
In the Bindings panel (Window > Bindings), click the Plus (+) button.
The Add Binding - Step 1 dialog box appears.
4.
Select the second option (“Data Will Flow From”) and then select the property of the data
service to supply the data.
For example, if you want to retrieve weather data from a web service, select one of the service’s
weather properties (for example, temperature) from the results returned by one of the web
service’s methods.
Summary of Contents for FLEX BUILDER-USING FLEX BUILDER
Page 1: ...Using Flex Builder...
Page 116: ...116 Chapter 4 Building a Flex User Interface Visually...
Page 144: ...144 Chapter 6 Working with Data...
Page 154: ...154 Appendix A Basic Flex Concepts...