MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Guía de usuario Pagina 160

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 256
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 159
160 Use View States and Transitions
Set up your project
Before you begin this lesson, ensure that you perform the following tasks:
If you have not already done so, create the Lessons project in Adobe Flex Builder. See
“Create the Lessons project” on page 101.
Ensure that the automatic build option is enabled in Flex Builder. This option is enabled
by default in the standalone configuration of Flex Builder but not in the plug-in
configuration. To enable it, select Project > Build Automatically.
Design the base state
Before you can use view states, you must design the base state of the application or
component. The base state is the default layout of the application or custom component.
In this section, you create a base state by inserting and positioning the controls of a simple
search form.
1. With your Lessons project selected in the Navigator view, select File > New > MXML
Application and create an application file called ViewStates.mxml.
2. Designate the ViewStates.mxml file as the default file to be compiled by right-clicking
(Control-click on Macintosh) the file in the Navigator view and selecting Set As Default
Application from the context menu.
3. In the MXML editor’s Design mode, add a Panel container to the ViewStates.mxml file by
dragging one from the Layout category of the Components view (Window >
Components).
4. Select the Panel container in the layout and set the following Panel properties in the Flex
Properties view:
ID: panel1
Width: 300
Height: 400
X: 5
Y: 5
NOTE
For the purpose of these lessons, several application files are used in a single Flex
Builder project. However, it’s good practice to have only one MXML application file
per project.
Vista de pagina 159
1 2 ... 155 156 157 158 159 160 161 162 163 164 165 ... 255 256

Comentarios a estos manuales

Sin comentarios