MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Use Manual page 139

Table of Contents

Advertisement

Flex Builder doesn't retrieve and display the schema of HTTP services or remote objects, so
you'll need to know the source property of these services in advance and specify it in the
Binding Source text box. The Binding Source text box shows the binding expression Flex
Builder will insert in the code. For more information, see "Binding data" in Developing Flex
Applications Help.
Click Next.
5.
The Add Binding - Step 2 dialog box appears.
Select the destination of the data supplied by the data service.
6.
The destination can be the property of a component or data model.
For example, if you have a Label component that you want to use to display the current
temperature, select the Label component in the left pane and then select the text:String
property in the right pane.
Click Finish to create the binding.
7.
The new binding appears in the Bindings panel.
Create an event handler to call the data service.
8.
You can create this event handler rapidly with Flex Builder. For instructions, see
data service" on page
Passing data to a Flex data service
You can create bindings to pass data to Flex data services. For example, you can create a binding
to pass a zip code to a web service so that you can obtain the current temperature at that zip code
location.
To create a binding to pass data to a data service:
Make sure your MXML file contains a component or data model that can supply data to the
1.
data service.
For example, your file can have a TextInput component that lets users enter a zip code.
In the Data panel, select the Flex data service.
2.
To add a data service to the panel, see
on page
136.
In the Bindings panel (Window > Bindings), click the Plus (+) button.
3.
The Add Binding - Step 1 dialog box appears.
141.
"Inserting a Flex data service in the MXML file"
Working with Flex data services
"Calling the
139

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex builder

Table of Contents