MACROMEDIA FLASH 8-USING FLASH Use Manual page 603

Using flash
Table of Contents

Advertisement

To customize the Response form:
1.
Select the Response form in the Screen Outline pane.
2.
Use components to create fields that will show the results.
For example, if your service is a weather service that returns temperature, you could use a
label component to create a non-editable text display.
After you've laid out your components, use the Parameters tab on the Component
inspector to create bindings between your components and the results of your service
connector.
To customize the Error form:
1.
Select the Applications form. The Error form is shown using ActionScript in Frame 1 of
the Applications form, during processing of the service call. The following example shows
two event handlers:
function status (stat) {
// Handle status message for errors
// If error,
// showError();
}
function result (res) {
// Handle result message for errors
// If error,
// showError();
}
2.
You can replace the bodies of these functions with your own code to interpret the status
and result messages and do one of the following actions:
Catch an error and show the error screen.
Go to the results screen to show the service's response.
To learn more about the result and status messages of a service call, see
(Flash Professional Only)" on page
Windowed Application template (Flash Professional only)
The Windowed Application template helps you create a windowed application that consists of
layered content panes. These panes are draggable, and they rise to the topmost layer when
they have focus. Each window can contain different content for the user to interact with.
The window components that load the subforms are on the Application form. The
property of each window component corresponds to the instance name of the
contentPath
form that it will load at runtime.
387.
"Data Integration
Using templates
603

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents