User Guide

Build the main page 23
Build the main page
Follow these steps to create the applications main page by adding components to a skeletal
starter page. Then add ActionScript code to customize the components, import the
ActionScript classes that allow you to manipulate the applications components, and access a
web service to populate the combo box with a list of offenses. The code populates the combo
box by setting its
dataProvider property to receive the results from the web service.
1. Open the first_app_start.fla file, which you can find at one of the following locations:
In Windows: install drive:\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\Components\ComponentsApplication
On the Macintosh: Macintosh HD/Applications/Macromedia Flash 8/Samples and
Tutorials/Samples/Components/ComponentsApplication
The file contains a start page that looks like the following:
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).
2. Select File > Save As. Rename the file and save it to your hard disk.
3. In the Timeline, select the Labels layer and click the Add Layer button to add a new layer
above it. Name the new layer Form. You will place the component instances in this layer.