MACROMEDIA FLEX-GETTING STARTED WITH FLEX Manual do Utilizador Página 54

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 148
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 53
absolute
Does
no automatic layout, and requires you to explicitly
define the location of each child component
If the Application component’s layout property is absolute,
each child component must have an x and y coordinate de-
fined; otherwise, the component will be displayed in the (0,0)
position.
The Application container can also be formatted using any of
the several style parameters that are available, including back
groundGradientColors and verticalGap. In Example 4-1, the
Application tag is used to lay out the child controls.
Example 4-1. The Application MXML
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
backgroundGradientColors="[#FFFFFF, #FFDE00]" verticalGap="15"
layout="horizontal">
<mx:Image source="assets/animals03.jpg" />
<mx:Label text="Photographed by Elsie Weil" fontSize="15"
fontWeight="bold" />
</mx:Application>
Figure 4-1 shows the result of this code.
Figure 4-1. Controls using the Application container
38 | Chapter 4:Flex Controls and Layout
Vista de página 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 147 148

Comentários a estes Manuais

Sem comentários