User Guide

Working with Flex data services 141
6.
Select the source of the data passed to the data service.
The source can be the property of a component or data model.
For example, if you have a TextInput component that lets users enter a zip code, select the
TextInput component in the left pane and then select the text:String property in the right
pane.
If you want, you can modify the binding expression in the Binding Source text box.
7.
Click Finish to create the binding.
The new binding appears in the Bindings panel.
8.
Create an event handler to call the data service.
You can create this event handler rapidly with Flex Builder. For instructions, see “Calling the
data service” on page 141.
Calling the data service
If you create a binding that passes data to, or retrieves data from, a data service, then you must
create an event handler that calls the data service. A component can call a data service such as a
web service only in response to an event. Otherwise, the data service is never invoked. You can
create this event handler rapidly with Flex Builder.