Macromedia flex builder-using flex builder ユーザーズマニュアル

ページ / 158
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 
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.