MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Use Manual page 142

Table of Contents

Advertisement

To create an event handler to call a data service:
Make sure your MXML file contains a binding to a data service such as an web service, an
1.
HTTP service, or a remote object.
The binding must appear in the Bindings panel (Window > Bindings). For more information,
see
"Working with Flex data services" on page
In Flex Builder, select the component that will generate the event to invoke the data service.
2.
For example, you can select a Button component for users to click.
In the Events panel of the Tag Inspector (Window > Tag Inspector), click the field next to the
3.
event that will trigger the service call.
A lightning bolt icon appears next to the field.
Click the lightning bolt icon.
4.
The Select Source for send() dialog box appears.
Specify the data service to invoke.
5.
For example, if you want to invoke a weather-related web service, select the web service in the
left pane (you must define the web service in the Data panel first) and then select the operation
to invoke in the right pane.
Click OK to create the event handler.
6.
142
Chapter 6: Working with Data
136.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex builder

Table of Contents