View The Application - MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual

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

Advertisement

If you are experienced with building application architecture in Flash, you may want to skip the
first section of the tutorial and read the second and third sections while referring to the finished
FLA file of the sample application, to learn about the procedures used to bind the components
and add event listeners for data integration. (To view the finished FLA file, see the next section.)
All the ActionScript needed for creating the sample application is provided with this tutorial.
However, to understand the scripting concepts and create your own application using the
procedures described here, you should have some prior experience writing ActionScript.

View the application

In this tutorial you'll create an application for the "Fix Your Mistake" gift service, which helps
users select an appropriate gift when they need to make amends with someone.
Keep in mind that the sample application is for demonstration purposes only. It is not possible to
check errors or verify data in the sample.
The sample application uses several UI components (including the ComboBox, TextArea, and
Button components) to create the application interface. It includes data components to connect
to external data sources: the XMLConnector component (to connect to an XML file) and the
DataSet component (to filter the data from the XML file and make the data available to UI
components). The application also uses the WebService class to connect dynamically to a web
service.
View the SWF file for the completed application
To view the completed application, open the first_app_v3.swf file at the following location:
In Windows: boot drive\Program Files\Macromedia\Flash MX 2004\Samples\
HelpExamples\components_application
On the Macintosh: Macintosh HD/Applications/Macromedia Flash MX 2004/Samples/
HelpExamples/components_application
To see how the application works, first click the arrow control in the What Did You Do? section.
Select from a list of blunders you might have committed (ranging in severity from Forgot to
Water Your Plants to Burned Your House Down). This section uses the ComboBox UI
component, populated by a web service.
A list of gift suggestions appears in the Gift Ideas section. Click a gift to view more information
about it. In the pop-up window that appears, select the quantity you want using the numeric
stepper, and click Add to Cart. Click the close box to close the window. Back in the main screen
of the application, click Checkout. This section uses the XMLConnector data component to
connect to an external XML file, the DataSet data component to filter the data from the XML
file, and the DataGrid UI component to display the data.
View the application
21

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