Build The Application Architecture - MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual

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

Advertisement

The WebService class is part of a set of web service classes, which provides a set of methods,
events, and properties that enable you to connect to a web service. The WebService class is
different from the WebServiceConnector component. (The WebServiceConnector
component, like the XMLConnector component, enables you to connect to an external data
source—in this case, a web service—by adding a component to an application and setting its
parameters.) The sample application uses the WebService class rather than the
WebServiceConnector component simply to demonstrate another way of connecting to an
external data source. For more information on the set of web service classes, see
classes (Flash Professional only)" on page

Build the application architecture

To build the application architecture, you'll add components to the Stage on Frame 1 (for the
main screen) and Frame 10 (for the Checkout screen). You'll also create movie clips that will be
used to display information inside various components.
Add component instances for the main screen of the application
You'll start the application by adding instances of the ComboBox, DataGrid, DataSet,
XMLConnector, and Button components to the Stage.
You'll also add the Window component to the library. Later in the tutorial you'll add code to
create instances of the Window component dynamically, to display product information when a
user clicks an item in the Gift Ideas section.
The ComboBox instance will display the list of blunders that the user can choose from. The list
will be provided by a web service that you'll connect to the ComboBox component later in the
tutorial, using the WebService class.
The DataGrid instance will display the list of gift ideas that the user can choose from. The list of
gifts (and all the product details for each gift) will be provided by an external XML file, which you
connect to by means of the XMLConnector component. To filter and sort the data from the
XML file, you'll use the DataSet component. Later in the tutorial, you'll use the Flash data
binding features to bind the DataGrid, XMLConnector, and DataSet components to interpret
and display product information from the XML file.
The Window component will be used to create a pop-up window that displays information on
each product in the Gift Ideas list.
Open the first_app_v3_start.fla file for the application, located in the components_application
1.
folder (the same folder that contains the first_app_v3.swf and first_app_v3.fla files).
The start_app.fla file contains three layers: a Background layer with a black background image
and text titles, a Text layer with text labels for sections of the application, and a Labels layer
with labels on the first frame (Home) and the tenth frame (Checkout).
Select File > Save As. Rename the file and save it to your hard drive.
2.
In the Timeline, select the Labels layer and click the Add Layer button to add a new layer above
3.
it. Name the new layer Form. You'll place the component instances on this layer.
842.
Build the application architecture
"Web service
23

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

This manual is also suitable for:

Flash mx

Table of Contents