MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 432

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

Advertisement

To customize the Response form:
Select the Response form in the Screen Outline pane.
1.
Use components to create fields that will show the results.
2.
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:
Select the Applications form. The Error form is shown using ActionScript in Frame 1 of
1.
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();
}
You can replace the bodies of these functions with your own code to interpret the status and
2.
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
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 the
focus is on them. 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 form that it will
load at runtime.
Modifying and adding window content
Window content is created on subforms of the Application form. The template comes with four
forms: a calendar, a DataGrid component showing simulated inbox content, a scroll pane
showing an image, and a login form.
432
Appendix A: Using Samples and Templates
253.
"Data Integration (Flash
contentPath

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents