EasyManua.ls Logo

MACROMEDIA FLASH 8-USING FLASH - Page 603

MACROMEDIA FLASH 8-USING FLASH
678 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Using templates 603
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 youve 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 services response.
To learn more about the result and status messages of a service call, see “Data Integration
(Flash Professional Only)” on page 387.
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
contentPath property of each window component corresponds to the instance name of the
form that it will load at runtime.

Table of Contents

Related product manuals