Using ActionScript 2.0 Components |
|
|
|
| Creating an Application with Components > About the Fix Your Mistake tutorial | |||
This tutorial takes you through the steps to create a basic online shopping application for the "Fix Your Mistake" gift service. This service helps a user select an appropriate gift to make amends to someone whom the user has offended. The application filters a list of gifts to those choices that match the severity of the user's offense. From that list the user can add items to the shopping cart and then proceed to the checkout page to provide billing, shipping, and credit card information.
This chapter contains the following sections:
About the Fix Your Mistake tutorial
Bind data components to display gift ideas
Viewing the completed application
The application uses the ComboBox, DataGrid, TextArea, and Button components, as well as others, to create the application interface. The main page of the interface looks like this:

The application uses the ActionScript WebService class to connect dynamically to a web service to retrieve the list of offenses (problems.xml) that appear in the combo box. It also uses ActionScript to handle the user's interactions with the application.
The application uses data components to connect the interface to another data source. It uses the XMLConnector component to connect to an XML data file (products.xml) for the list of gifts and it uses the DataSet component to filter the data and present it to the data grid.
The tutorial requires some familiarity with the Flash authoring environment and some experience with ActionScript. In the authoring environment, you should have some experience using panels, tools, the timeline, and the library. All the ActionScript needed for creating the sample application is provided here within the tutorial. To understand the scripting concepts and create your own applications, however, you will need additional experience writing ActionScript.
To see a working version of the completed application, see Viewing the completed application
Keep in mind that the sample application is for demonstration purposes and therefore is not as complete as a real-world application.
|
|
|
|