MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 431

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

Using form application templates (Flash Professional only)
Flash MX Professional 2004 provides two templates you can use to create form-based
applications:
"Query-Error-Response template (Flash Professional only)" on page 431
"Windowed Application template (Flash Professional only)" on page 432
Query-Error-Response template (Flash Professional only)
The Query-Error-Response template helps you create applications that perform a simple query to
a remote data source, and then, depending on the outcome, display the results in a response form
or show an error on an error form. This type of application is useful when performing queries on
web services because they are structured as a simple query/response transaction. There are two
steps for using this template, which are discussed in this section.
Configuring your service
The first step is to configure the service that your application will call. The template uses a web
service connector. If you use a web service as your data source, you can configure the web service
connector in the Parameters tab on the Component Inspector. Enter the URL to the service in the
WSDL field, and select the operation your application will call.
You can replace the web service connector with another connector that is appropriate to your
application from the Components panel. If you select your own connector, you can delete the
web service component, but you must edit the actions in Frame 1 of the Application form to
replace "wsc" with the instance name of the connector you created. This ensures that the Submit
button triggers your service.
For more information about web service and other connectors, see Chapter 1, "About
Components" in Using Components.
Customizing your forms
The next step is to customize your forms. The Query form should contain fields that correspond
to the parameters of your service. The Response form should contain the fields that correspond to
the results of your service. The Error form shows an error message to the user when something has
gone wrong in the process of calling the service. You can show any message on the Error screen.
To customize the Query form:
Select the Query form in the Screen Outline pane.
1.
Use components from the Components panel, such as text input fields, radio buttons, combo
2.
boxes, and others, to create the input fields for the Query form.
After you've laid out your form elements, use the Parameters tab on the Component Inspector
3.
to create bindings between your components and the parameters of your service connector.
Using templates
431

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents